This documentation is archived and is not being maintained.
SecurityNamespace::HasPermission Method (String, IdentityDescriptor, IEnumerable<Int32>, Boolean)
Visual Studio 2013
Checks whether the specified identity descriptor has the specified permissions for the specified token.
Namespace: Microsoft.TeamFoundation.Framework.Client
Assembly: Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)
public: virtual Collection<bool>^ HasPermission( String^ token, IdentityDescriptor^ descriptor, IEnumerable<int>^ requestedPermissions, bool alwaysAllowAdministrators ) abstract
Parameters
- token
- Type: System::String
The security token on which to perform the check.
- descriptor
- Type: Microsoft.TeamFoundation.Framework.Client::IdentityDescriptor
The identity descriptor for which to perform the security check.
- requestedPermissions
- Type: System.Collections.Generic::IEnumerable<Int32>
The permissions that are being requested.
- alwaysAllowAdministrators
- Type: System::Boolean
True if administrators should always be granted these permissions.
Return Value
Type: System.Collections.ObjectModel::Collection<Boolean>A collection of results for the respective checks. True if the specified identity descriptor has the respective permissions for the specified token; otherwise, false.
The results are in the same index order as the specified permissions.
- 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.
Show: