TeamFoundationSecurityNamespace.QueryEffectivePermissions Method
Returns the effective allowed permissions for the given descriptor.
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Overridable Function QueryEffectivePermissions ( _
requestContext As TeamFoundationRequestContext, _
token As String, _
descriptor As IdentityDescriptor _
) As Integer
public virtual int QueryEffectivePermissions(
TeamFoundationRequestContext requestContext,
string token,
IdentityDescriptor descriptor
)
public:
virtual int QueryEffectivePermissions(
TeamFoundationRequestContext^ requestContext,
String^ token,
IdentityDescriptor^ descriptor
)
abstract QueryEffectivePermissions :
requestContext:TeamFoundationRequestContext *
token:string *
descriptor:IdentityDescriptor -> int
override QueryEffectivePermissions :
requestContext:TeamFoundationRequestContext *
token:string *
descriptor:IdentityDescriptor -> int
public function QueryEffectivePermissions(
requestContext : TeamFoundationRequestContext,
token : String,
descriptor : IdentityDescriptor
) : int
Parameters
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextThe context for the current request.
token
Type: System.StringThe token for the AccessControlList we are querying permissions on.
descriptor
Type: Microsoft.VisualStudio.Services.Identity.IdentityDescriptorThe descriptor to query permissions for.
Return Value
Type: System.Int32
The effective allowed permissions for the descriptor.
.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.