CommandFilter.IsCommandAllowed Method

Returns whether a command is allowed.

Namespace:  Microsoft.VisualStudio.Data.Schema.Project.Common.UI
Assembly:  Microsoft.VisualStudio.Data.Schema.Project (in Microsoft.VisualStudio.Data.Schema.Project.dll)

Syntax

'Declaration
Public Function IsCommandAllowed ( _
    commandGroup As Guid, _
    command As UInteger _
) As Boolean
'Usage
Dim instance As CommandFilter
Dim commandGroup As Guid
Dim command As UInteger
Dim returnValue As Boolean

returnValue = instance.IsCommandAllowed(commandGroup, _
    command)
public bool IsCommandAllowed(
    Guid commandGroup,
    uint command
)
public:
bool IsCommandAllowed(
    Guid commandGroup, 
    unsigned int command
)
public function IsCommandAllowed(
    commandGroup : Guid, 
    command : uint
) : boolean
member IsCommandAllowed : 
        commandGroup:Guid * 
        command:uint32 -> bool 

Parameters

  • commandGroup
    Type: System.Guid
    The command group the command belongs to

Return Value

Type: System.Boolean
Returns true if command is allowed, false otherwise.

Remarks

First check the filter callback and, if it returns false, check the filter lists.

.NET Framework Security

See Also

Reference

CommandFilter Class

CommandFilter Members

Microsoft.VisualStudio.Data.Schema.Project.Common.UI Namespace