获取应给定对象实例的引用。此适配器显示。
命名空间: Microsoft.VisualStudio.Modeling.Integration
程序集: Microsoft.VisualStudio.Modeling.Sdk.Integration.11.0(在 Microsoft.VisualStudio.Modeling.Sdk.Integration.11.0.dll 中)
语法
声明
Public MustOverride Function GetElementReference ( _
element As Object _
) As ModelBusReference
public abstract ModelBusReference GetElementReference(
Object element
)
参数
- element
类型:System.Object
模型总线引用的组件应返回。不应是 cnullAMP_LT/cAMP_GT
返回值
类型:Microsoft.VisualStudio.Modeling.Integration.ModelBusReference
在作为参数传递的元素显示的引用,则它由此适配器管理
备注
如果 AMP_LT/w: tAMP_GTAMP_LT/w:w:rw:rPrw:rStyle w:val="ParameterReference"/rAMP_GTAMP_LT/w:w:trPrAMP_GTelementAMP_LT/w: tAMP_GTAMP_LT/w: rAMP_GTw:rw:t 是 cnullAMP_LT/cAMP_GT, ArgumentNullExceptionArgumentNullException 将引发。如果 AMP_LT/w: tAMP_GTAMP_LT/w:w:rw:rPrw:rStyle w:val="ParameterReference"/rAMP_GTAMP_LT/w:w:trPrAMP_GTelementAMP_LT/w: tAMP_GTAMP_LT/w: rAMP_GTw:rw:t 元素不属于该适配器托管对象, ArgumentException引发 ArgumentException
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。