次の方法で共有


ComponentLoadFailedEventArgs クラス

定義

バイナリ データの読み込みが失敗した場合の MediaProtectionManager オブジェクトのイベント データが含まれます。

public ref class ComponentLoadFailedEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class ComponentLoadFailedEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class ComponentLoadFailedEventArgs
Public NotInheritable Class ComponentLoadFailedEventArgs
継承
Object Platform::Object IInspectable ComponentLoadFailedEventArgs
属性

Windows の要件

デバイス ファミリ
Windows 10 (10.0.10240.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v1.0 で導入)

次の例は、 MediaProtectionManager を作成し、 Properties プロパティを設定し、 ComponentLoadFailedServiceRequested のイベント リスナーを追加する方法を示しています。 完全な例については、 プラグ可能な DRM の使用方法 に関するトピックを参照してください。 '''javascript

mediaProtectionManager = 新しい Windows.Media.Protection.MediaProtectionManager();

function ServiceRequested(e) { logMsg("Got Enabler - system/type: {" + e.request.protectionSystem + "}/{" + e.request.type + "}");e.completion.complete(true);}

function ComponentLoadFailed(e) { logMsg(e.information.items.size.toString() + " failed components"); logMsg("

コンポーネント:

");

(var i = 0; < e.information.items.size; i++) { logMsg(" の失敗したコンポーネントを一覧表示します

" + e.information.items[i].name + "

" + "

Reasons=0x" + e.information.items[i].reasons.toString(16) + "

Renewal Id=" + e.information.items[i].renewalId);}

e.completion.complete(false);}

function RebootNeeded(e) { logMsg("Reboot Required"); }

mediaProtectionManager.addEventListener("servicerequested", ServiceRequested, false);mediaProtectionManager.addEventListener("componentloadfailed", ComponentLoadFailed, false);mediaProtectionManager.addEventListener("rebootneeded", RebootNeeded, false);

注釈

このオブジェクトは直接インスタンス化されません。 MediaProtectionManager.ComponentLoadFailed イベントによって作成され、ComponentLoadFailedEventHandler デリゲートの引数として返されます。

プロパティ

Completion

イベントの完了を示す値を返します。

Information

更新されたコンポーネントで取り消して更新する必要がある 、RevocationAndRenewalInformation オブジェクト内のコンポーネントの一覧を返します。

適用対象