IHostCommands.GetCommand 方法

适用于版本2

获取或创建由组和 ID 标识的任意命令。

命名空间:  Microsoft.WebMatrix.Extensibility
程序集:  Microsoft.WebMatrix.Extensibility(在 Microsoft.WebMatrix.Extensibility.dll 中)

语法

声明
Function GetCommand ( _
    group As Guid, _
    id As Integer _
) As ICommand
用法
Dim instance As IHostCommands 
Dim group As Guid 
Dim id As Integer 
Dim returnValue As ICommand 

returnValue = instance.GetCommand(group, _
    id)
ICommand GetCommand(
    Guid group,
    int id
)
ICommand^ GetCommand(
    Guid group, 
    int id
)
abstract GetCommand : 
        group:Guid * 
        id:int -> ICommand
function GetCommand(
    group : Guid, 
    id : int
) : ICommand

参数

返回值

类型:System.Windows.Input.ICommand
由组和 ID 标识的任意命令。

请参阅

参考

IHostCommands 接口

Microsoft.WebMatrix.Extensibility 命名空间