ComponentRenewal ComponentRenewal ComponentRenewal ComponentRenewal Class

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

Syntax

Declaration

public static class ComponentRenewalpublic static class ComponentRenewalPublic Static Class ComponentRenewal

Remarks

Examples

This example shows a ComponentLoadFailedEventHandler. A loop iterates through the failed components. And RenewSystemComponentsAsync(Windows.Media.Protection.RevocationAndRenewalInformation) 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 summary

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

Methods

  • RenewSystemComponentsAsync(Windows.Media.Protection.RevocationAndRenewalInformation)
    RenewSystemComponentsAsync(Windows.Media.Protection.RevocationAndRenewalInformation)
    RenewSystemComponentsAsync(Windows.Media.Protection.RevocationAndRenewalInformation)
    RenewSystemComponentsAsync(Windows.Media.Protection.RevocationAndRenewalInformation)

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

    public static IAsyncOperationWithProgress<RenewalStatus, uint> RenewSystemComponentsAsync(Windows.Media.Protection.RevocationAndRenewalInformation information)public static IAsyncOperationWithProgress<RenewalStatus, uint> RenewSystemComponentsAsync(Windows.Media.Protection.RevocationAndRenewalInformation information)Public Static Function RenewSystemComponentsAsync(information As Windows.Media.Protection.RevocationAndRenewalInformation) As IAsyncOperationWithProgress( Of RenewalStatus, uint )

    Parameters

    Returns

    • An object that is used to control the asynchronous operation.

Device family

Windows Desktop Extension SDK (introduced v10.0.10240.0)

API contract

Windows.Media.Protection.ProtectionRenewalContract (introduced v1)

Attributes

Windows.Foundation.Metadata.StaticAttribute
Windows.Foundation.Metadata.ContractVersionAttribute

Details

Assembly

Windows.Media.Protection.dll