Megosztás a következőn keresztül:


EventGridModelFactory.MediaJobCanceledEventData Method

Definition

Initializes a new instance of MediaJobCanceledEventData.

public static Azure.Messaging.EventGrid.SystemEvents.MediaJobCanceledEventData MediaJobCanceledEventData (Azure.Messaging.EventGrid.SystemEvents.MediaJobState? previousState = default, Azure.Messaging.EventGrid.SystemEvents.MediaJobState? state = default, System.Collections.Generic.IReadOnlyDictionary<string,string> correlationData = default, System.Collections.Generic.IEnumerable<Azure.Messaging.EventGrid.SystemEvents.MediaJobOutput> outputs = default);
static member MediaJobCanceledEventData : Nullable<Azure.Messaging.EventGrid.SystemEvents.MediaJobState> * Nullable<Azure.Messaging.EventGrid.SystemEvents.MediaJobState> * System.Collections.Generic.IReadOnlyDictionary<string, string> * seq<Azure.Messaging.EventGrid.SystemEvents.MediaJobOutput> -> Azure.Messaging.EventGrid.SystemEvents.MediaJobCanceledEventData
Public Shared Function MediaJobCanceledEventData (Optional previousState As Nullable(Of MediaJobState) = Nothing, Optional state As Nullable(Of MediaJobState) = Nothing, Optional correlationData As IReadOnlyDictionary(Of String, String) = Nothing, Optional outputs As IEnumerable(Of MediaJobOutput) = Nothing) As MediaJobCanceledEventData

Parameters

previousState
Nullable<MediaJobState>

The previous state of the Job.

state
Nullable<MediaJobState>

The new state of the Job.

correlationData
IReadOnlyDictionary<String,String>

Gets the Job correlation data.

outputs
IEnumerable<MediaJobOutput>

Gets the Job outputs. Please note MediaJobOutput is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include MediaJobOutputAsset.

Returns

A new MediaJobCanceledEventData instance for mocking.

Applies to