Commands2.Add Method
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Microsoft internal use only.
Namespace: EnvDTE80
Assembly: EnvDTE80 (in EnvDTE80.dll)
Syntax
'Declaration
Sub Add ( _
Guid As String, _
ID As Integer, _
ByRef Control As Object _
)
void Add(
string Guid,
int ID,
ref Object Control
)
void Add(
[InAttribute] String^ Guid,
[InAttribute] int ID,
[InAttribute] Object^% Control
)
abstract Add :
Guid:string *
ID:int *
Control:Object byref -> unit
function Add(
Guid : String,
ID : int,
Control : Object
)
Parameters
Guid
Type: StringThe GUID of the command.
ID
Type: Int32The command ID.
Control
Type: Object%The control that appears on the toolbar.
.NET Framework Security
- 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.