Partager via


PermissionsController.HasPermission Method

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
<HttpGetAttribute> _
Public Function HasPermission ( _
    securityNamespaceId As Guid, _
    permissions As Integer, _
    token As String, _
    alwaysAllowAdministrators As Boolean _
) As Boolean
[HttpGetAttribute]
public bool HasPermission(
    Guid securityNamespaceId,
    int permissions,
    string token,
    bool alwaysAllowAdministrators
)
[HttpGetAttribute]
public:
bool HasPermission(
    Guid securityNamespaceId, 
    int permissions, 
    String^ token, 
    bool alwaysAllowAdministrators
)
[<HttpGetAttribute>]
member HasPermission : 
        securityNamespaceId:Guid * 
        permissions:int * 
        token:string * 
        alwaysAllowAdministrators:bool -> bool
public function HasPermission(
    securityNamespaceId : Guid, 
    permissions : int, 
    token : String, 
    alwaysAllowAdministrators : boolean
) : boolean

Parameters

Return Value

Type: System.Boolean
Returns Boolean.

.NET Framework Security

See Also

Reference

PermissionsController Class

Microsoft.TeamFoundation.Framework.Server Namespace