Jaa


ComponentLoadFailedEventArgs Class

Definition

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

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
Inheritance
Object Platform::Object IInspectable ComponentLoadFailedEventArgs
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

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

Returns an indication of the completion of the event.

Information

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

Applies to