你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

EventGridModelFactory.MediaJobFinishedEventData 方法

定义

初始化 MediaJobFinishedEventData 的新实例。

public static Azure.Messaging.EventGrid.SystemEvents.MediaJobFinishedEventData MediaJobFinishedEventData (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 MediaJobFinishedEventData : 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.MediaJobFinishedEventData
Public Shared Function MediaJobFinishedEventData (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 MediaJobFinishedEventData

参数

previousState
Nullable<MediaJobState>

作业的上一状态。

state
Nullable<MediaJobState>

作业的新状态。

correlationData
IReadOnlyDictionary<String,String>

获取作业相关数据。

outputs
IEnumerable<MediaJobOutput>

获取作业输出。 请注意 MediaJobOutput , 是基类。 根据方案,可能需要在此处分配基类的派生类,或者需要将此属性强制转换为可能的派生类之一。 可用的派生类包括 MediaJobOutputAsset

返回

用于模拟的新 MediaJobFinishedEventData 实例。

适用于