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
)

参数

备注

当调用此方法时,无论架构视图中显示的是哪个项目,都将注册组件以便接收通知。

.NET Framework 安全性

请参见

参考

ISchemaModelViewer 接口

Microsoft.VisualStudio.Data.Schema.Package.Project.SchemaModelViewer 命名空间