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.UInt32The 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
- 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.
See Also
Reference
IMonitorSelectionService Interface
IMonitorSelectionService Members