ISchemaModelViewer.RegisterForCommandRouting 方法
为 OLE 命令目标路由注册指定对象。
命名空间: Microsoft.VisualStudio.Data.Schema.Package.Project.SchemaModelViewer
程序集: Microsoft.VisualStudio.Data.Schema.Package(在 Microsoft.VisualStudio.Data.Schema.Package.dll 中)
语法
声明
Sub RegisterForCommandRouting ( _
target As IOleCommandTarget _
)
void RegisterForCommandRouting(
IOleCommandTarget target
)
void RegisterForCommandRouting(
IOleCommandTarget^ target
)
abstract RegisterForCommandRouting :
target:IOleCommandTarget -> unit
function RegisterForCommandRouting(
target : IOleCommandTarget
)
参数
- target
类型:Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget
要注册的 IOleCommandTarget。
备注
当调用此方法时,无论架构视图中显示的是哪个项目,都将注册组件以便接收通知。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。
请参见
参考
Microsoft.VisualStudio.Data.Schema.Package.Project.SchemaModelViewer 命名空间