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