ModelBus.CreateAdapter 方法 (ModelBusReference)

执行 CreateAdapter 方法

命名空间:  Microsoft.VisualStudio.Modeling.Integration
程序集:  Microsoft.VisualStudio.Modeling.Sdk.Integration.11.0(在 Microsoft.VisualStudio.Modeling.Sdk.Integration.11.0.dll 中)

语法

声明
Public Function CreateAdapter ( _
    reference As ModelBusReference _
) As ModelBusAdapter
public ModelBusAdapter CreateAdapter(
    ModelBusReference reference
)

参数

返回值

类型:Microsoft.VisualStudio.Modeling.Integration.ModelBusAdapter
创建的适配器,则为 null 一个无法创建

实现

IModelBus.CreateAdapter(ModelBusReference)

备注

如果返回的 ModelBusAdapter 是 cnullAMP_LT/cAMP_GT 或引发了异常, AMP_LT/w 的 LastStatusreference.LastStatus 属性: tAMP_GTAMP_LT/w:w:rw:rPrw:rStyle w:val="ParameterReference"/rAMP_GTAMP_LT/w:w:trPrAMP_GTreferenceAMP_LT/w: tAMP_GTAMP_LT/w: rAMP_GTw:rw:t 可以提供有关该失败的原因的提示

.NET Framework 安全性

请参见

参考

ModelBus 类

CreateAdapter 重载

Microsoft.VisualStudio.Modeling.Integration 命名空间