IMonitorSelectionService.IsCommandContextActive Method (Guid)

Verifies whether the specified command UI context is active.

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

Syntax

'Declaration
Function IsCommandContextActive ( _
    commandContext As Guid _
) As Boolean
'Usage
Dim instance As IMonitorSelectionService 
Dim commandContext As Guid 
Dim returnValue As Boolean 

returnValue = instance.IsCommandContextActive(commandContext)
bool IsCommandContextActive(
    Guid commandContext
)
bool IsCommandContextActive(
    Guid commandContext
)
function IsCommandContextActive(
    commandContext : Guid
) : boolean

Parameters

  • commandContext
    Type: System.Guid

    The GUID for the command UI context that you want to verify.

Return Value

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

.NET Framework Security

See Also

Reference

IMonitorSelectionService Interface

IMonitorSelectionService Members

IsCommandContextActive Overload

Microsoft.VisualStudio.Modeling.Shell Namespace