ComponentRenewal class

Applies to Windows and Windows Phone

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

Syntax


var componentRenewal = Windows.Media.Protection.ComponentRenewal;

Attributes

[Version(0x06020000)]

Members

The ComponentRenewal class has these types of members:

Methods

The ComponentRenewal class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

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

 

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

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.Media.Protection
Windows::Media::Protection [C++]

Metadata

Windows.winmd

See also

Object

 

 

Show:
© 2014 Microsoft