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
- securityNamespaceId
Type: System.Guid
- token
Type: System.String
- requestedPermissions
Type: System.Int32
- alwaysAllowAdministrators
Type: System.Boolean
- userState
Type: System.Object
Return Value
Type: System.Threading.Tasks.Task<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.