OleCommand 建構函式
類別建構函式。 OleCommand 初始化類別的新執行個體命令群組識別項 (Command Identifier) 的。
命名空間: Microsoft.VisualStudio.Data
組件: Microsoft.VisualStudio.Data (在 Microsoft.VisualStudio.Data.dll 中)
語法
'宣告
Public Sub New ( _
groupGuid As Guid, _
commandId As Integer _
)
public OleCommand(
Guid groupGuid,
int commandId
)
public:
OleCommand(
Guid groupGuid,
int commandId
)
new :
groupGuid:Guid *
commandId:int -> OleCommand
public function OleCommand(
groupGuid : Guid,
commandId : int
)
參數
groupGuid
類型:Guid功能表群組 GUID 的指定命令的。
commandId
類型:Int32命令的 ID 在指定的功能表群組中。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。