EventGridModelFactory.MediaJobErroredEventData Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of MediaJobErroredEventData.
public static Azure.Messaging.EventGrid.SystemEvents.MediaJobErroredEventData MediaJobErroredEventData (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 MediaJobErroredEventData : 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.MediaJobErroredEventData
Public Shared Function MediaJobErroredEventData (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 MediaJobErroredEventData
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 MediaJobErroredEventData instance for mocking.