共用方式為


LicensingHttpClient.GetClientRightsContainerAsync 方法 (ClientRightsQueryContext, ClientRightsTelemetryContext, Object, CancellationToken)

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

語法

'宣告
Public Overridable Function GetClientRightsContainerAsync ( _
    queryContext As ClientRightsQueryContext, _
    telemetryContext As ClientRightsTelemetryContext, _
    userState As Object, _
    cancellationToken As CancellationToken _
) As Task(Of ClientRightsContainer)
public virtual Task<ClientRightsContainer> GetClientRightsContainerAsync(
    ClientRightsQueryContext queryContext,
    ClientRightsTelemetryContext telemetryContext,
    Object userState,
    CancellationToken cancellationToken
)

參數

傳回值

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

.NET Framework 安全性

請參閱

參考

LicensingHttpClient 類別

GetClientRightsContainerAsync 多載

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