使用模型浏览器选择引用并显示该引用。 支持存储的自动 fixup。
命名空间: Microsoft.VisualStudio.Modeling.Integration.Picker.Hosting
程序集: Microsoft.VisualStudio.Modeling.Sdk.Integration.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.Integration.12.0.dll 中)
语法
声明
Function PickModelReferenceNoFixup ( _
context As ITypeDescriptorContext, _
editorService As IWindowsFormsEditorService, _
serviceProvider As IServiceProvider, _
reference As ModelBusReference _
) As ModelBusReference
ModelBusReference PickModelReferenceNoFixup(
ITypeDescriptorContext context,
IWindowsFormsEditorService editorService,
IServiceProvider serviceProvider,
ModelBusReference reference
)
参数
- context
类型:System.ComponentModel.ITypeDescriptorContext
调用方法的上下文
- editorService
类型:System.Windows.Forms.Design.IWindowsFormsEditorService
使用自定义可视化表示形式根据 DefaultEditStyle 启用编辑引用的操作
- serviceProvider
类型:System.IServiceProvider
不同所需服务的服务提供程序。
- reference
类型:Microsoft.VisualStudio.Modeling.Integration.ModelBusReference
当前引用
返回值
类型:Microsoft.VisualStudio.Modeling.Integration.ModelBusReference
选取器选择的引用
备注
使用中的方法演示 UITypeEditor 的选择器。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。
请参阅
参考
Microsoft.VisualStudio.Modeling.Integration.Picker.Hosting 命名空间