Share via


ContentKeyPolicyCollection.ExistsAsync(String, CancellationToken) Method

Definition

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/contentKeyPolicies/{contentKeyPolicyName}
  • Operation Id: ContentKeyPolicies_Get
  • Default Api Version: 2023-01-01
  • Resource: ContentKeyPolicyResource
public virtual System.Threading.Tasks.Task<Azure.Response<bool>> ExistsAsync(string contentKeyPolicyName, System.Threading.CancellationToken cancellationToken = default);
abstract member ExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<bool>>
override this.ExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<bool>>
Public Overridable Function ExistsAsync (contentKeyPolicyName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of Boolean))

Parameters

contentKeyPolicyName
System.String

The Content Key Policy name.

cancellationToken
System.Threading.CancellationToken

The cancellation token to use.

Returns

System.Threading.Tasks.Task<Azure.Response<System.Boolean>>

Exceptions

System.ArgumentException

contentKeyPolicyName is an empty string, and was expected to be non-empty.

System.ArgumentNullException

contentKeyPolicyName is null.

Applies to