Método LicensingHttpClient.AssignEntitlementAsync
Namespace: Microsoft.VisualStudio.Services.Licensing.Client
Assembly: Microsoft.VisualStudio.Services.WebApi (em Microsoft.VisualStudio.Services.WebApi.dll)
Sintaxe
'Declaração
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
)
Parâmetros
- userId
Tipo: System.Guid
- license
Tipo: Microsoft.VisualStudio.Services.Licensing.License
- userState
Tipo: System.Object
Valor de retorno
Tipo: System.Threading.Tasks.Task<AccountEntitlement>
Segurança do .NET Framework
- Confiança total para o chamador imediato. O membro não pode ser usado por código parcialmente confiável. Para obter mais informações, consulte Usando bibliotecas de código parcialmente confiável.