Class constructor. Initializes a new instance of the OleCommand class with command group identifier and command identifier.
Namespace: Microsoft.VisualStudio.Data
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Syntax
'宣言
Public Sub New ( _
groupGuid As Guid, _
commandId As Integer _
)
'使用
Dim groupGuid As Guid
Dim commandId As Integer
Dim instance As New OleCommand(groupGuid, _
commandId)
public OleCommand(
Guid groupGuid,
int commandId
)
public:
OleCommand(
Guid groupGuid,
int commandId
)
public function OleCommand(
groupGuid : Guid,
commandId : int
)
Parameters
groupGuid
Type: System.GuidGUID of the menu group for the specified command.
commandId
Type: System.Int32The ID of the command within the specified menu group.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.