ISecurityNamespaceExtension.HasPermission Method
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Function HasPermission ( _
requestContext As TeamFoundationRequestContext, _
token As String, _
requestedPermissions As Integer, _
effectiveAllows As Integer, _
effectiveDenys As Integer, _
preliminaryDecision As Boolean _
) As Boolean
bool HasPermission(
TeamFoundationRequestContext requestContext,
string token,
int requestedPermissions,
int effectiveAllows,
int effectiveDenys,
bool preliminaryDecision
)
bool HasPermission(
TeamFoundationRequestContext^ requestContext,
String^ token,
int requestedPermissions,
int effectiveAllows,
int effectiveDenys,
bool preliminaryDecision
)
abstract HasPermission :
requestContext:TeamFoundationRequestContext *
token:string *
requestedPermissions:int *
effectiveAllows:int *
effectiveDenys:int *
preliminaryDecision:bool -> bool
function HasPermission(
requestContext : TeamFoundationRequestContext,
token : String,
requestedPermissions : int,
effectiveAllows : int,
effectiveDenys : int,
preliminaryDecision : boolean
) : boolean
Parameters
- requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
- token
Type: System.String
- requestedPermissions
Type: System.Int32
- effectiveAllows
Type: System.Int32
- effectiveDenys
Type: System.Int32
- preliminaryDecision
Type: System.Boolean
Return Value
Type: System.Boolean
.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.