共用方式為


IHostCommands.GetCommand 方法

適用於版本2

取得或建立群組和識別碼所識別的任意命令。

命名空間:  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
群組和識別碼所識別的任意命令。

請參閱

參考

IHostCommands 介面

Microsoft.WebMatrix.Extensibility 命名空間