RevocationAndRenewalItem class

Applies to Windows and Windows Phone

Represents a component that is being revoked and renewed with a trusted component.

Syntax


/* For information about creating or accessing this object, see Remarks. */

Attributes

[MarshalingBehavior(Agile)]
[Version(0x06020000)]

Members

The RevocationAndRenewalItem class has these types of members:

Methods

The RevocationAndRenewalItem class inherits methods from the Object class (C#/VB/C++).

Properties

The RevocationAndRenewalItem class has these properties.

PropertyAccess typeDescription

HeaderHash

Read-onlyReturns the header hash for the component being revoked.

Name

Read-onlyReturns the name for the component being revoked.

PublicKeyHash

Read-onlyReturns the public key hash for the component.

Reasons

Read-onlyReturns the reason for revocation of component.

RenewalId

Read-onlyReturns the GUID for the renewal object.

 

Remarks

An instance of this object is returned by the RevocationAndRenewalInformation.Items property. This information can be passed to ComponentRenewal.RenewSystemComponentsAsync for system processing.

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 Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

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

Metadata

Windows.winmd

 

 

Show:
© 2014 Microsoft