IMonitorSelectionService.IsCommandContextActive Method (UInt32)

Verifies whether the command UI context for the specified cookie is active.

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)

Syntax

'Declaration
Function IsCommandContextActive ( _
    cookie As UInteger _
) As Boolean
'Usage
Dim instance As IMonitorSelectionService 
Dim cookie As UInteger 
Dim returnValue As Boolean 

returnValue = instance.IsCommandContextActive(cookie)
bool IsCommandContextActive(
    uint cookie
)
bool IsCommandContextActive(
    unsigned int cookie
)
function IsCommandContextActive(
    cookie : uint
) : boolean

Parameters

  • cookie
    Type: System.UInt32

    The cookie that is assigned to the command UI context.

Return Value

Type: System.Boolean
true if the command UI context for the specified cookie is active; otherwise, false.

.NET Framework Security

See Also

Reference

IMonitorSelectionService Interface

IMonitorSelectionService Members

IsCommandContextActive Overload

Microsoft.VisualStudio.Modeling.Shell Namespace