ComponentLoadFailedEventArgs ComponentLoadFailedEventArgs ComponentLoadFailedEventArgs ComponentLoadFailedEventArgs Class


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

public : sealed class ComponentLoadFailedEventArgs : IComponentLoadFailedEventArgs
public sealed class ComponentLoadFailedEventArgs : IComponentLoadFailedEventArgs
Public NotInheritable Class ComponentLoadFailedEventArgs Implements IComponentLoadFailedEventArgs
// This class does not provide a public constructor.
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


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("



// 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);



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


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
var mediaProtectionServiceCompletion = componentLoadFailedEventArgs.completion;

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
var revocationAndRenewalInformation = componentLoadFailedEventArgs.information;
RevocationAndRenewalInformation RevocationAndRenewalInformation RevocationAndRenewalInformation RevocationAndRenewalInformation

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