ModelingTextTransformation.AddDomainModel 方法

加入要供存放區載入的網域模型型別。 在呼叫 Initialize() 之前,請先針對每個網域模型呼叫此項目。

命名空間:  Microsoft.VisualStudio.TextTemplating.VSHost
組件:  Microsoft.VisualStudio.TextTemplating.Modeling.10.0 (在 Microsoft.VisualStudio.TextTemplating.Modeling.10.0.dll 中)

語法

'宣告
Protected Sub AddDomainModel ( _
    modelType As Type _
)
protected void AddDomainModel(
    Type modelType
)
protected:
void AddDomainModel(
    Type^ modelType
)
member AddDomainModel : 
        modelType:Type -> unit 
protected function AddDomainModel(
    modelType : Type
)

參數

  • modelType
    型別:System.Type
    由網域特定語言所定義的網域模型型別。

.NET Framework 安全性

請參閱

參考

ModelingTextTransformation 類別

Microsoft.VisualStudio.TextTemplating.VSHost 命名空間