Gets the cookie that is assigned to the specified command UI context.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)
Syntax
'宣言
<CLSCompliantAttribute(False)> _
Function GetCommandContextCookie ( _
commandContext As Guid _
) As UInteger
'使用
Dim instance As IMonitorSelectionService
Dim commandContext As Guid
Dim returnValue As UInteger
returnValue = instance.GetCommandContextCookie(commandContext)
[CLSCompliantAttribute(false)]
uint GetCommandContextCookie(
Guid commandContext
)
[CLSCompliantAttribute(false)]
unsigned int GetCommandContextCookie(
Guid commandContext
)
function GetCommandContextCookie(
commandContext : Guid
) : uint
Parameters
commandContext
Type: System.GuidThe GUID of the command UI context.
Return Value
Type: System.UInt32
The cookie that is assigned to the specified command UI context.
Remarks
The cookie represents the commandContext parameter that was passed in to this method.
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.
See Also
Reference
IMonitorSelectionService Interface