SecurityService.HasPermission Method
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public MustOverride Function HasPermission ( _
requestContext As TeamFoundationRequestContext, _
securityNamespaceId As Guid, _
token As String, _
requestedPermissions As Integer, _
alwaysAllowAdministrators As Boolean _
) As Boolean
public abstract bool HasPermission(
TeamFoundationRequestContext requestContext,
Guid securityNamespaceId,
string token,
int requestedPermissions,
bool alwaysAllowAdministrators
)
public:
virtual bool HasPermission(
TeamFoundationRequestContext^ requestContext,
Guid securityNamespaceId,
String^ token,
int requestedPermissions,
bool alwaysAllowAdministrators
) abstract
abstract HasPermission :
requestContext:TeamFoundationRequestContext *
securityNamespaceId:Guid *
token:string *
requestedPermissions:int *
alwaysAllowAdministrators:bool -> bool
public abstract function HasPermission(
requestContext : TeamFoundationRequestContext,
securityNamespaceId : Guid,
token : String,
requestedPermissions : int,
alwaysAllowAdministrators : boolean
) : boolean
Parameters
- requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
- securityNamespaceId
Type: System.Guid
- token
Type: System.String
- requestedPermissions
Type: System.Int32
- alwaysAllowAdministrators
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.