ComponentLoadFailedEventArgs ComponentLoadFailedEventArgs ComponentLoadFailedEventArgs ComponentLoadFailedEventArgs Class

Definition

Contains event data for a MediaProtectionManager object when the load of binary data fails.

public : sealed class ComponentLoadFailedEventArgs : IComponentLoadFailedEventArgspublic sealed class ComponentLoadFailedEventArgs : IComponentLoadFailedEventArgsPublic NotInheritable Class ComponentLoadFailedEventArgs Implements IComponentLoadFailedEventArgs// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Examples

The following example shows how to create a MediaProtectionManager, set the Properties property, and add event listeners for ComponentLoadFailed and ServiceRequested. See the How to use pluggable DRM topic for the full example. ```javascript

mediaProtectionManager = new 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("

Components:

");

// List the failing components for (var i = 0; i < 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);

```

Remarks

This object is not instantiated directly. It is created by the MediaProtectionManager.ComponentLoadFailed event and is returned as an argument to the ComponentLoadFailedEventHandler delegate.

Properties

Completion Completion Completion Completion

Returns an indication of the completion of the event.

public : MediaProtectionServiceCompletion Completion { get; }public MediaProtectionServiceCompletion Completion { get; }Public ReadOnly Property Completion As MediaProtectionServiceCompletion// You can use this property in JavaScript.

Information Information Information Information

Returns a list of components in the RevocationAndRenewalInformation object that need to be revoked and renewed with updated components.

public : RevocationAndRenewalInformation Information { get; }public RevocationAndRenewalInformation Information { get; }Public ReadOnly Property Information As RevocationAndRenewalInformation// You can use this property in JavaScript.
Value
RevocationAndRenewalInformation RevocationAndRenewalInformation RevocationAndRenewalInformation RevocationAndRenewalInformation

An object that contains a list of components to be revoked and renewed with updated components.