IMonitorSelectionService.GetCommandContextCookie Method
Gets the cookie that is assigned to the specified command UI context.
This API is not CLS-compliant.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll)
Syntax
'Declaration
<CLSCompliantAttribute(False)> _
Function GetCommandContextCookie ( _
commandContext As Guid _
) As UInteger
[CLSCompliantAttribute(false)]
uint GetCommandContextCookie(
Guid commandContext
)
[CLSCompliantAttribute(false)]
unsigned int GetCommandContextCookie(
Guid commandContext
)
[<CLSCompliantAttribute(false)>]
abstract GetCommandContextCookie :
commandContext:Guid -> uint32
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.
.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.