LicensingHttpClient.AssignEntitlementAsync Method
Namespace: Microsoft.VisualStudio.Services.Licensing.Client
Assembly: Microsoft.VisualStudio.Services.WebApi (in Microsoft.VisualStudio.Services.WebApi.dll)
Syntax
'Declaration
Public Overridable Function AssignEntitlementAsync ( _
userId As Guid, _
license As License, _
userState As Object _
) As Task(Of AccountEntitlement)
public virtual Task<AccountEntitlement> AssignEntitlementAsync(
Guid userId,
License license,
Object userState
)
public:
virtual Task<AccountEntitlement^>^ AssignEntitlementAsync(
Guid userId,
License^ license,
Object^ userState
)
abstract AssignEntitlementAsync :
userId:Guid *
license:License *
userState:Object -> Task<AccountEntitlement>
override AssignEntitlementAsync :
userId:Guid *
license:License *
userState:Object -> Task<AccountEntitlement>
public function AssignEntitlementAsync(
userId : Guid,
license : License,
userState : Object
) : Task<AccountEntitlement>
Parameters
- userId
Type: System.Guid
- license
Type: Microsoft.VisualStudio.Services.Licensing.License
- userState
Type: System.Object
Return Value
Type: System.Threading.Tasks.Task<AccountEntitlement>
.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.