ComponentRenewal ComponentRenewal ComponentRenewal ComponentRenewal Class

Definition

Enables applications to initiate renewal of components which need updating in order to play protected media content.

public : static class ComponentRenewal
public static class ComponentRenewal
Public Static Class ComponentRenewal
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows Desktop Extension SDK (introduced v10.0.10240.0)
API contract
Windows.Media.Protection.ProtectionRenewalContract (introduced v1)

Examples

This example shows a ComponentLoadFailedEventHandler. A loop iterates through the failed components. And RenewSystemComponentsAsync is invoked. Note that the RevocationAndRenewalInformation is passed in through the ComponentLoadFailedEventArgs.

function ComponentLoadFailed(e) {

    for (var i = 0; i < e.information.items.size; i++) {
        LogMessage('Component Name=' + 
                    e.information.items[i].name + 
                    '<BR/>');
        LogMessage('Failure Reason=' + 
                    e.information.items[i].reasons.toString(16) + 
                    '<BR/>');
        LogMessage('Renewal GUID=' + 
                    e.information.items[i].renewalId + 
                    '<BR/>');
    }

    //  Invoke the revocation               
    ComponentRenewal.renewSystemComponentsAsync(e.information).then(
        function (r) {
            LogMessage("RenewSystemComponentsAsync: " + 
                        r.toString() + 
                        '<BR/>');

            e.completion.complete(false);
        }
    );
};

Methods

RenewSystemComponentsAsync(RevocationAndRenewalInformation) RenewSystemComponentsAsync(RevocationAndRenewalInformation) RenewSystemComponentsAsync(RevocationAndRenewalInformation) RenewSystemComponentsAsync(RevocationAndRenewalInformation)

Initiates updating of critical content protection components after prompting the user.

public : static IAsyncOperationWithProgress<RenewalStatus, unsigned int> RenewSystemComponentsAsync(RevocationAndRenewalInformation information)
public static IAsyncOperationWithProgress<RenewalStatus, uint> RenewSystemComponentsAsync(RevocationAndRenewalInformation information)
Public Static Function RenewSystemComponentsAsync(information As RevocationAndRenewalInformation) As IAsyncOperationWithProgress( Of RenewalStatus )( Of uint )
var iAsyncOperationWithProgress = Windows.Media.Protection.ComponentRenewal.renewSystemComponentsAsync(information);
Parameters
Returns

An object that is used to control the asynchronous operation.