RevocationAndRenewalItem class

RevocationAndRenewalItem class

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

Syntax


public ref class RevocationAndRenewalItem sealed 

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-only

Returns the header hash for the component being revoked.

Name

Read-only

Returns the name for the component being revoked.

PublicKeyHash

Read-only

Returns the public key hash for the component.

Reasons

Read-only

Returns the reason for revocation of component.

RenewalId

Read-only

Returns 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 (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

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

Attributes

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

See also

Object

 

 

Show:
© 2016 Microsoft