Partager via


SecurityHttpClient.HasPermissionAsync Method

Namespace:  Microsoft.VisualStudio.Services.Security.Client
Assembly:  Microsoft.VisualStudio.Services.WebApi (in Microsoft.VisualStudio.Services.WebApi.dll)

Syntax

'Declaration
Public Function HasPermissionAsync ( _
    securityNamespaceId As Guid, _
    token As String, _
    requestedPermissions As Integer, _
    alwaysAllowAdministrators As Boolean, _
    userState As Object _
) As Task(Of Boolean)
public Task<bool> HasPermissionAsync(
    Guid securityNamespaceId,
    string token,
    int requestedPermissions,
    bool alwaysAllowAdministrators,
    Object userState
)
public:
Task<bool>^ HasPermissionAsync(
    Guid securityNamespaceId, 
    String^ token, 
    int requestedPermissions, 
    bool alwaysAllowAdministrators, 
    Object^ userState
)
member HasPermissionAsync : 
        securityNamespaceId:Guid * 
        token:string * 
        requestedPermissions:int * 
        alwaysAllowAdministrators:bool * 
        userState:Object -> Task<bool> 
public function HasPermissionAsync(
    securityNamespaceId : Guid, 
    token : String, 
    requestedPermissions : int, 
    alwaysAllowAdministrators : boolean, 
    userState : Object
) : Task<boolean>

Parameters

Return Value

Type: System.Threading.Tasks.Task<Boolean>

.NET Framework Security

See Also

Reference

SecurityHttpClient Class

Microsoft.VisualStudio.Services.Security.Client Namespace