NDStartAsyncOptions 枚举

定义

指示异步启动选项。 此枚举是按位 OR,由 StartAsync 方法使用。

public enum class NDStartAsyncOptions
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class NDStartAsyncOptions
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Deprecated("NDStartAsyncOptions is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 196608, "Windows.Foundation.UniversalApiContract")]
enum class NDStartAsyncOptions
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum NDStartAsyncOptions
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Deprecated("NDStartAsyncOptions is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 196608, "Windows.Foundation.UniversalApiContract")]
public enum NDStartAsyncOptions
var value = Windows.Media.Protection.PlayReady.NDStartAsyncOptions.mutualAuthentication
Public Enum NDStartAsyncOptions
继承
NDStartAsyncOptions
属性

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

字段

MutualAuthentication 1

如果设置,发送器的证书将通过 RegistrationCompleted 事件提供给调用方进行验证。 调用方应设置一个标志来接受或拒绝它。 如果未设置, RegistrationCompleted 将不包含证书。

WaitForLicenseDescriptor 2

如果 Set 且 StartAsyncLicenseFetchDescriptor 参数为 null,则 StartAsync 将等待来自 NDDownloadEngineNotifierNDStreamParserNotifierOnContentIDReceived在 OnContentIDReceived 之后,接收的 LicenseFetchDescriptor 用于执行许可证提取。 如果未设置并且 StartAsyncLicenseFetchDescriptor 参数为 null,则 StartAsync 假定你事先已获取许可证,并且不会执行许可证提取。 请注意,如果 LicenseFetchDescriptor为 null,则忽略此标志并执行许可证提取。

适用于