共用方式為


StandardModelingAdapter 類別

 

表示基本 DSL 基礎模型配置器。

命名空間:   Microsoft.VisualStudio.Modeling.Integration
組件:  Microsoft.VisualStudio.Modeling.Sdk.Integration.12.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Integration.12.0.dll 中)

繼承階層架構

System.Object
Microsoft.VisualStudio.Modeling.Integration.ModelBusAdapter
Microsoft.VisualStudio.Modeling.Integration.ModelingAdapter
Microsoft.VisualStudio.Modeling.Integration.StandardModelingAdapter

語法

[CLSCompliantAttribute(false)]
public abstract class StandardModelingAdapter : ModelingAdapter
[CLSCompliantAttribute(false)]
public ref class StandardModelingAdapter abstract : ModelingAdapter
[<AbstractClass>]
[<CLSCompliantAttribute(false)>]
type StandardModelingAdapter = 
    class
        inherit ModelingAdapter
    end
<CLSCompliantAttribute(False)>
Public MustInherit Class StandardModelingAdapter
    Inherits ModelingAdapter

建構函式

名稱 描述
System_CAPS_protmethod StandardModelingAdapter(ModelBusReference, ModelBusAdapterManager, ModelElement)

建構函式

System_CAPS_protmethod StandardModelingAdapter(ModelBusReference, ModelBusAdapterManager, Store)

建構函式

屬性

名稱 描述
System_CAPS_pubproperty AdapterManager

建立這個 ModelBusAdapter 執行個體的 ModelBusAdapterManager 執行個體。(繼承自 ModelBusAdapter。)

System_CAPS_protproperty AdapterModelRoot

System_CAPS_protproperty AdapterStore

System_CAPS_pubproperty DisplayName

ModelBusAdapter 的顯示名稱(繼承自 ModelBusAdapter。)

System_CAPS_pubproperty Disposed

如果已經處置這個 ModelBusAdapter 執行個體則為 true,否則為 false。(繼承自 ModelBusAdapter。)

System_CAPS_pubproperty DocumentHandler

此 ModelingAdapter 所用的 ModelingDocumentHandler。ModelBusAdapter 使用 DocumentHandler 來設定它所包裝的模型。只有當此屬性未經設定,您可以設定它。(繼承自 ModelingAdapter。)

System_CAPS_pubproperty Reference

(繼承自 ModelBusAdapter。)

方法

名稱 描述
System_CAPS_pubmethod Dispose()

(繼承自 ModelBusAdapter。)

System_CAPS_protmethod Dispose(Boolean)

清除這個 ModelBusAdapter 執行個體。觸發對 DocumentHandler 的處置,若有的話。(繼承自 ModelingAdapter。)

System_CAPS_pubmethod Equals(ModelBusAdapter)

如果此 ModelBusAdapter 和指定的 ModelBusAdapter 執行個體相同,則為 true,否則為 false。(繼承自 ModelBusAdapter。)

System_CAPS_pubmethod Equals(Object)

(繼承自 Object。)

System_CAPS_protmethod Finalize()

解構函式。(繼承自 ModelBusAdapter。)

System_CAPS_pubmethod GetDefaultView()

取得與這個模型關聯的 PrimaryView (如果有的話)。(覆寫 ModelBusAdapter.GetDefaultView()。)

System_CAPS_protmethod GetElementDisplayName(ModelElement)

可讓 DSL 作者決定特定模型項目之顯示名稱的擴充點

System_CAPS_protmethod GetElementId(ModelElement)

取得 ModelElement 的項目 ID。這個項目 Id 會用於建立模型項目的 modelbus 參考

System_CAPS_pubmethod GetElementReference(Object)

取得應由此配接器公開之指定物件執行個體的參考。(覆寫 ModelBusAdapter.GetElementReference(Object)。)

System_CAPS_protmethod GetElementReferences(Type)

取回所有符合指定之資料合約的參考的物件。(繼承自 ModelBusAdapter。)

System_CAPS_pubmethod GetHashCode()

(繼承自 Object。)

System_CAPS_pubmethod GetReferences(Type)

(繼承自 ModelBusAdapter。)

System_CAPS_protmethod GetReferenceStatus()

驗證項目和檢視 (如果適用),並傳回狀態(覆寫 ModelBusAdapter.GetReferenceStatus()。)

System_CAPS_pubmethod GetType()

(繼承自 Object。)

System_CAPS_pubmethod GetView(ModelBusReference)

根據 ModelBusView 參考,取得與這個模型相關聯的特定檢視(覆寫 ModelBusAdapter.GetView(ModelBusReference)。)

System_CAPS_protmethod MemberwiseClone()

(繼承自 Object。)

System_CAPS_pubmethod ResolveElementReference(ModelBusReference)

根據指定的項目識別項,傳回這個參考所代表的實際物件。(覆寫 ModelBusAdapter.ResolveElementReference(ModelBusReference)。)

System_CAPS_pubmethod ToString()

(繼承自 Object。)

System_CAPS_pubmethod TrySetDocumentHandler(ModelingDocumentHandler)

如果 ModelingDocumentHandler 尚未設定的 (即由建構函式),則將它設定為當做參數傳遞的值。否則傳回 false。(繼承自 ModelingAdapter。)

執行緒安全

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

請參閱

Microsoft.VisualStudio.Modeling.Integration 命名空間

回到頁首