Поделиться через


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

Return Value

Type: System.Boolean

.NET Framework Security

See Also

Reference

SecurityService Class

Microsoft.TeamFoundation.Framework.Server Namespace