Share via


GraphProviderAttribute 類別

用來表示目標型別為圖形提供者的屬性。

繼承階層架構

Object
  Attribute
    ExportAttribute
      Microsoft.VisualStudio.GraphModel.GraphProviderAttribute

命名空間:  Microsoft.VisualStudio.GraphModel
組件:  Microsoft.VisualStudio.GraphModel (在 Microsoft.VisualStudio.GraphModel.dll 中)

語法

'宣告
<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple := False, Inherited := False)> _
<MetadataAttributeAttribute> _
Public Class GraphProviderAttribute _
    Inherits ExportAttribute _
    Implements IGraphProviderMetadata
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
[MetadataAttributeAttribute]
public class GraphProviderAttribute : ExportAttribute, 
    IGraphProviderMetadata
[AttributeUsageAttribute(AttributeTargets::Class, AllowMultiple = false, Inherited = false)]
[MetadataAttributeAttribute]
public ref class GraphProviderAttribute : public ExportAttribute, 
    IGraphProviderMetadata
[<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = false, Inherited = false)>]
[<MetadataAttributeAttribute>]
type GraphProviderAttribute =  
    class 
        inherit ExportAttribute 
        interface IGraphProviderMetadata 
    end
public class GraphProviderAttribute extends ExportAttribute implements IGraphProviderMetadata

GraphProviderAttribute 類型會公開下列成員。

建構函式

  名稱 描述
公用方法 GraphProviderAttribute()
公用方法 GraphProviderAttribute(Type) 指定自訂型別為匯出之 MEF 的建構函式。

回頁首

屬性

  名稱 描述
公用屬性 ContractName 取得合約名稱,此名稱會用來匯出標記有這個屬性的型別或成員。 (繼承自 ExportAttribute)。
公用屬性 ContractType 取得合約型別,該型別是由附加此屬性的成員匯出。 (繼承自 ExportAttribute)。
公用屬性 IntellisenseType IntelliSense 型別 GUID 做為字串。在使用這個 IntelliSense 程式碼片段類型的專案出現時,就會載入提供者。
公用屬性 Name 用來識別提供者的名稱。
公用屬性 ProjectKind 專案類型 GUID 做為字串。無論何時這種類型的專案出現時,就會載入提供者。
公用屬性 TypeId 在衍生類別中實作時,取得這個 Attribute 的唯一識別項。 (繼承自 Attribute)。

回頁首

方法

  名稱 描述
公用方法 Equals 基礎架構。 傳回數值,表示這個執行個體是否等於指定的物件。 (繼承自 Attribute)。
受保護的方法 Finalize 在記憶體回收開始前,允許物件嘗試釋放資源,並執行其他清除作業。 (繼承自 Object)。
公用方法 GetHashCode 傳回這個執行個體的雜湊碼。 (繼承自 Attribute)。
公用方法 GetType 取得目前實例 Type 的屬性。 (繼承自 Object)。
公用方法 IsDefaultAttribute 在衍生類別中覆寫時,表示這個執行個體的值是否為衍生類別的預設值。 (繼承自 Attribute)。
公用方法 Match 在衍生類別中覆寫時,會傳回值,表示這個執行個體是否等於指定物件。 (繼承自 Attribute)。
受保護的方法 MemberwiseClone 建立目前 Object 的淺層複製 (Shallow Copy) 。 (繼承自 Object)。
公用方法 ToString 傳回代表目前物件的字串。 (繼承自 Object)。

回頁首

明確介面實作

  名稱 描述
明確介面實作私用方法 System#Runtime#InteropServices#_Attribute#GetIDsOfNames 將一組名稱對應至一組對應的分派識別項 (Dispatch Identifier)。 (繼承自 Attribute)。
明確介面實作私用方法 System#Runtime#InteropServices#_Attribute#GetTypeInfo 擷取物件的型別資訊,可以用來取得介面的型別資訊。 (繼承自 Attribute)。
明確介面實作私用方法 System#Runtime#InteropServices#_Attribute#GetTypeInfoCount 擷取物件提供的型別資訊介面數目 (0 或 1)。 (繼承自 Attribute)。
明確介面實作私用方法 System#Runtime#InteropServices#_Attribute#Invoke 提供物件所公開的屬性和方法的存取權。 (繼承自 Attribute)。

回頁首

執行緒安全

這個類型的任何 Public static (在 Visual Basic 中為 Shared) 成員都是安全執行緒。不保證任何執行個體成員是安全執行緒。

請參閱

參考

Microsoft.VisualStudio.GraphModel 命名空間