IMonitorSelectionService.GetCommandContextCookie Method

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.Guid

    The 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

See Also

Reference

IMonitorSelectionService Interface

IMonitorSelectionService Members

Microsoft.VisualStudio.Modeling.Shell Namespace