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
參數
group
型別:System.Guid命令群組。
id
型別:System.Int32命令識別碼。
傳回值
型別:System.Windows.Input.ICommand
群組和識別碼所識別的任意命令。