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
- command
Type: System.UInt32
The command to look for
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
- 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
Microsoft.VisualStudio.Data.Schema.Project.Common.UI Namespace