Partager via


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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0.dll)

Syntax

'Déclaration
Function IsCommandContextActive ( _
    cookie As UInteger _
) As Boolean
bool IsCommandContextActive(
    uint cookie
)
bool IsCommandContextActive(
    unsigned int cookie
)
abstract IsCommandContextActive : 
        cookie:uint32 -> bool 
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

IsCommandContextActive Overload

Microsoft.VisualStudio.Modeling.Shell Namespace