共用方式為


LicensingHttpClient.AssignEntitlementAsync 方法 (Guid, License, Object, CancellationToken)

命名空間:  Microsoft.VisualStudio.Services.Licensing.Client
組件:  Microsoft.VisualStudio.Services.WebApi (在 Microsoft.VisualStudio.Services.WebApi.dll 中)

語法

'宣告
Public Overridable Function AssignEntitlementAsync ( _
    userId As Guid, _
    license As License, _
    userState As Object, _
    cancellationToken As CancellationToken _
) As Task(Of AccountEntitlement)
public virtual Task<AccountEntitlement> AssignEntitlementAsync(
    Guid userId,
    License license,
    Object userState,
    CancellationToken cancellationToken
)

參數

傳回值

類型:System.Threading.Tasks.Task<AccountEntitlement>

.NET Framework 安全性

請參閱

參考

LicensingHttpClient 類別

AssignEntitlementAsync 多載

Microsoft.VisualStudio.Services.Licensing.Client 命名空間