CodeInterface2 介面

代表原始程式碼中介面的物件。

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

語法

'宣告
<GuidAttribute("860AB609-8AF2-4434-B4DD-A43DEE31B017")> _
Public Interface CodeInterface2 _
    Inherits CodeInterface
[GuidAttribute("860AB609-8AF2-4434-B4DD-A43DEE31B017")]
public interface CodeInterface2 : CodeInterface
[GuidAttribute(L"860AB609-8AF2-4434-B4DD-A43DEE31B017")]
public interface class CodeInterface2 : CodeInterface
[<GuidAttribute("860AB609-8AF2-4434-B4DD-A43DEE31B017")>]
type CodeInterface2 =  
    interface
        interface CodeInterface
    end
public interface CodeInterface2 extends CodeInterface

CodeInterface2 型別會公開下列成員。

屬性

  名稱 說明
公用屬性 Access (繼承自 CodeInterface)。
公用屬性 Access 設定或取得這個項目的存取屬性。
公用屬性 Attributes (繼承自 CodeInterface)。
公用屬性 Attributes 取得父物件所有屬性的集合。
公用屬性 Bases (繼承自 CodeInterface)。
公用屬性 Bases 取得衍生出這個項目的類別集合。
公用屬性 Children (繼承自 CodeInterface)。
公用屬性 Children 取得物件的集合,此集合包含在 CodeInterface 中。
公用屬性 Collection (繼承自 CodeInterface)。
公用屬性 Collection 取得包含支援此屬性之 CodeInterface 物件的集合。
公用屬性 Comment (繼承自 CodeInterface)。
公用屬性 Comment 取得或設定與 CodeInterface 關聯的註解。
公用屬性 DataTypeKind 設定或取得此介面與其他介面的關聯性 (Relationship)。
公用屬性 DerivedTypes (繼承自 CodeInterface)。
公用屬性 DerivedTypes 取得從這個物件衍生的物件集合。尚未在 Visual C# 中進行實作。
公用屬性 DocComment (繼承自 CodeInterface)。
公用屬性 DocComment 取得或設定目前程式碼模型元素的文件註解。
公用屬性 DTE (繼承自 CodeInterface)。
公用屬性 DTE 取得最上層的擴充性物件。
公用屬性 EndPoint (繼承自 CodeInterface)。
公用屬性 EndPoint 取得文字位置,此位置為程式碼項目尾端的位置。
公用屬性 Extender[String] (繼承自 CodeInterface)。
公用屬性 Extender[String] 取得要求的擴充項物件 (如果適用於這個物件)。尚未在 Visual C# 中進行實作。
公用屬性 ExtenderCATID (繼承自 CodeInterface)。
公用屬性 ExtenderCATID 取得物件的擴充項分類 ID (CATID)。尚未在 Visual C# 中進行實作。
公用屬性 ExtenderNames (繼承自 CodeInterface)。
公用屬性 ExtenderNames 取得物件的可用擴充項清單。尚未在 Visual C# 中進行實作。
公用屬性 FullName (繼承自 CodeInterface)。
公用屬性 FullName 取得物件檔案的完整路徑和名稱。
公用屬性 InfoLocation (繼承自 CodeInterface)。
公用屬性 InfoLocation 取得程式碼模型的功能。
公用屬性 IsCodeType (繼承自 CodeInterface)。
公用屬性 IsCodeType 取得值,指出是否可以從這個物件取得 CodeType 物件。
公用屬性 IsDerivedFrom[String] (繼承自 CodeInterface)。
公用屬性 IsDerivedFrom[String] 取得值,表示物件是否以另一個物件為基底。
公用屬性 IsGeneric 取得值,表示介面是否為泛型。
公用屬性 Kind (繼承自 CodeInterface)。
公用屬性 Kind 取得列舉型別,指出物件的型別。
公用屬性 Language (繼承自 CodeInterface)。
公用屬性 Language 取得程式語言,用以撰寫程式碼。
公用屬性 Members (繼承自 CodeInterface)。
公用屬性 Members 取得這個 CodeInterface 項目 (Element) 包含之項目 (Item) 的集合。
公用屬性 Name (繼承自 CodeInterface)。
公用屬性 Name 取得或設定物件的名稱。
公用屬性 Namespace (繼承自 CodeInterface)。
公用屬性 Namespace 取得物件,這個物件定義父命名空間。
公用屬性 Parent (繼承自 CodeInterface)。
公用屬性 Parent 取得 CodeInterface 物件的直接上層父物件。
公用屬性 Parts 取得部分的介面。
公用屬性 ProjectItem (繼承自 CodeInterface)。
公用屬性 ProjectItem 取得與 CodeInterface 物件關聯的 ProjectItem 物件。
公用屬性 StartPoint (繼承自 CodeInterface)。
公用屬性 StartPoint 取得 TextPoint 物件,用以定義程式碼項目的開頭。

回頁首

方法

  名稱 說明
公用方法 AddAttribute(String, String, Object) (繼承自 CodeInterface)。
公用方法 AddAttribute(String, String, Object) 建立新的屬性程式碼建構,並在正確位置插入程式碼。
公用方法 AddBase(Object, Object) (繼承自 CodeInterface)。
公用方法 AddBase(Object, Object) 將項目加入至繼承之物件的清單中。
公用方法 AddEvent 加入介面事件。
公用方法 AddFunction(String, vsCMFunction, Object, Object, vsCMAccess) (繼承自 CodeInterface)。
公用方法 AddFunction(String, vsCMFunction, Object, Object, vsCMAccess) 建立新的函式程式碼建構,並在正確位置插入程式碼。
公用方法 AddProperty(String, String, Object, Object, vsCMAccess, Object) (繼承自 CodeInterface)。
公用方法 AddProperty(String, String, Object, Object, vsCMAccess, Object) 建立新的屬性程式碼建構,並在正確位置插入程式碼。
公用方法 GetEndPoint(vsCMPart) (繼承自 CodeInterface)。
公用方法 GetEndPoint(vsCMPart) TextPoint 物件,用以標示程式碼項目定義的結尾。
公用方法 GetStartPoint(vsCMPart) (繼承自 CodeInterface)。
公用方法 GetStartPoint(vsCMPart) TextPoint 物件,用以定義程式碼項目定義的開頭。
公用方法 RemoveBase(Object) (繼承自 CodeInterface)。
公用方法 RemoveBase(Object) 從基底清單中移除物件。
公用方法 RemoveMember(Object) (繼承自 CodeInterface)。
公用方法 RemoveMember(Object) 移除成員程式碼建構。

回頁首

備註

注意事項注意事項

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

請參閱

參考

EnvDTE80 命名空間

其他資源

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

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

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