CodeParameter2 介面

物件,定義函式的參數以及屬性等等。

命名空間:  EnvDTE80
組件:  EnvDTE80 (在 EnvDTE80.dll 中)

語法

'宣告
<GuidAttribute("35CD9E36-7C96-4429-968F-C0C350CB1A47")> _
Public Interface CodeParameter2 _
    Inherits CodeParameter
[GuidAttribute("35CD9E36-7C96-4429-968F-C0C350CB1A47")]
public interface CodeParameter2 : CodeParameter
[GuidAttribute(L"35CD9E36-7C96-4429-968F-C0C350CB1A47")]
public interface class CodeParameter2 : CodeParameter
[<GuidAttribute("35CD9E36-7C96-4429-968F-C0C350CB1A47")>]
type CodeParameter2 =  
    interface
        interface CodeParameter
    end
public interface CodeParameter2 extends CodeParameter

CodeParameter2 型別會公開下列成員。

屬性

  名稱 說明
公用屬性 Attributes (繼承自 CodeParameter)。
公用屬性 Attributes 取得父物件屬性的集合。
公用屬性 Children (繼承自 CodeParameter)。
公用屬性 Children 取得這個程式碼建構內所含物件的集合。
公用屬性 Collection (繼承自 CodeParameter)。
公用屬性 Collection 取得集合,包含支援這個屬性的 CodeParameter 物件。
公用屬性 DefaultValue 取得或設定存在於程式碼中的常值。
公用屬性 DocComment (繼承自 CodeParameter)。
公用屬性 DocComment 取得或設定目前程式碼模型元素的文件註解。
公用屬性 DTE (繼承自 CodeParameter)。
公用屬性 DTE 取得最上層的擴充性物件。
公用屬性 EndPoint (繼承自 CodeParameter)。
公用屬性 EndPoint 取得編輯點,此編輯點為程式碼項目結尾的位置。
公用屬性 Extender[String] (繼承自 CodeParameter)。
公用屬性 Extender[String] 取得要求的擴充項 (如果適用於 CodeParameter 物件)。
公用屬性 ExtenderCATID (繼承自 CodeParameter)。
公用屬性 ExtenderCATID 取得 CodeParameter 物件的擴充項分類 ID (CATID)。
公用屬性 ExtenderNames (繼承自 CodeParameter)。
公用屬性 ExtenderNames 取得物件的可用擴充項清單。
公用屬性 FullName (繼承自 CodeParameter)。
公用屬性 FullName 取得物件檔案的完整路徑和名稱。
公用屬性 InfoLocation (繼承自 CodeParameter)。
公用屬性 InfoLocation 取得程式碼模型的功能。
公用屬性 IsCodeType (繼承自 CodeParameter)。
公用屬性 IsCodeType 取得值,表示是否可以從這個 CodeParameter 物件取得 CodeType 物件。
公用屬性 Kind (繼承自 CodeParameter)。
公用屬性 Kind 取得列舉型別,指出物件型別。
公用屬性 Language (繼承自 CodeParameter)。
公用屬性 Language 取得用來撰寫程式碼的程式語言。
公用屬性 Name (繼承自 CodeParameter)。
公用屬性 Name 取得或設定物件的名稱。
公用屬性 ParameterKind 取得或設定數值,表示參數是否必須有值或參考行為
公用屬性 Parent (繼承自 CodeParameter)。
公用屬性 Parent 取得 CodeParameter 物件的直屬父物件。
公用屬性 ProjectItem (繼承自 CodeParameter)。
公用屬性 ProjectItem 取得與指定之物件相關聯的 ProjectItem
公用屬性 StartPoint (繼承自 CodeParameter)。
公用屬性 StartPoint 取得 TextPoint 物件,用以定義程式碼項目的開頭。
公用屬性 Type (繼承自 CodeParameter)。
公用屬性 Type 取得或設定物件,這個物件表示程式設計類型。

回頁首

方法

  名稱 說明
公用方法 AddAttribute(String, String, Object) (繼承自 CodeParameter)。
公用方法 AddAttribute(String, String, Object) 建立新的屬性程式碼建構,並在正確位置插入程式碼。
公用方法 GetEndPoint(vsCMPart) (繼承自 CodeParameter)。
公用方法 GetEndPoint(vsCMPart) TextPoint 物件,用以標示程式碼項目定義的結尾。
公用方法 GetStartPoint(vsCMPart) (繼承自 CodeParameter)。
公用方法 GetStartPoint(vsCMPart) TextPoint 物件,用以定義程式碼項目定義的開頭。

回頁首

備註

CodeParameter 物件代表函式定義的型式參數 (Formal Parameter)。

注意事項注意事項

在特定類型的編輯之後,程式碼模型項目 (例如類別、結構、函式、屬性、委派等) 的值可能不具決定性,表示其值不一定維持相同。如需詳細資訊,請參閱使用程式碼模型探索程式碼 (Visual Basic) 的<程式碼模型項目值可以變更>一節。

請參閱

參考

EnvDTE80 命名空間

其他資源

HOW TO:編譯和執行 Automation 物件模型程式碼範例

使用程式碼模型探索程式碼 (Visual Basic)

使用程式碼模型探索程式碼 (Visual C#)