执行 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
)
参数
- reference
类型:Microsoft.VisualStudio.Modeling.Integration.ModelBusReference
该适配器的引用
返回值
类型: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 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。