Condividi tramite


StreamingPoliciesOperationsExtensions.CreateAsync Method

Definition

Create a Streaming Policy

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Media.Models.StreamingPolicy> CreateAsync (this Microsoft.Azure.Management.Media.IStreamingPoliciesOperations operations, string resourceGroupName, string accountName, string streamingPolicyName, Microsoft.Azure.Management.Media.Models.StreamingPolicy parameters, System.Threading.CancellationToken cancellationToken = default);
static member CreateAsync : Microsoft.Azure.Management.Media.IStreamingPoliciesOperations * string * string * string * Microsoft.Azure.Management.Media.Models.StreamingPolicy * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Media.Models.StreamingPolicy>
<Extension()>
Public Function CreateAsync (operations As IStreamingPoliciesOperations, resourceGroupName As String, accountName As String, streamingPolicyName As String, parameters As StreamingPolicy, Optional cancellationToken As CancellationToken = Nothing) As Task(Of StreamingPolicy)

Parameters

operations
IStreamingPoliciesOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group within the Azure subscription.

accountName
String

The Media Services account name.

streamingPolicyName
String

The Streaming Policy name.

parameters
StreamingPolicy

The request parameters

cancellationToken
CancellationToken

The cancellation token.

Returns

Remarks

Create a Streaming Policy in the Media Services account

Applies to