RevocationAndRenewalItem RevocationAndRenewalItem RevocationAndRenewalItem RevocationAndRenewalItem Class

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

Syntax

Declaration

public sealed class RevocationAndRenewalItempublic sealed class RevocationAndRenewalItemPublic NotInheritable Class RevocationAndRenewalItempublic sealed class RevocationAndRenewalItem

Remarks

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

Examples

This example shows a ComponentLoadFailedEventHandler. A loop iterates through the failed components. And RenewSystemComponentsAsync(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);
        }
    );
};

Properties summary

Returns the header hash for the component being revoked.

Returns the name for the component being revoked.

Returns the public key hash for the component.

Returns the reason for revocation of component.

Returns the GUID for the renewal object.

Properties

  • HeaderHash
    HeaderHash
    HeaderHash
    HeaderHash

    Returns the header hash for the component being revoked.

    public string HeaderHash { get; }public string HeaderHash { get; }Public ReadOnly Property HeaderHash As stringpublic string HeaderHash { get; }

    Property Value

    • string
      string
      string
      string

      The string for the header hash.

  • Name
    Name
    Name
    Name

    Returns the name for the component being revoked.

    public string Name { get; }public string Name { get; }Public ReadOnly Property Name As stringpublic string Name { get; }

    Property Value

    • string
      string
      string
      string

      The name of the component.

  • PublicKeyHash
    PublicKeyHash
    PublicKeyHash
    PublicKeyHash

    Returns the public key hash for the component.

    public string PublicKeyHash { get; }public string PublicKeyHash { get; }Public ReadOnly Property PublicKeyHash As stringpublic string PublicKeyHash { get; }

    Property Value

    • string
      string
      string
      string

      The public key hash.

  • Reasons
    Reasons
    Reasons
    Reasons

    Returns the reason for revocation of component.

    public RevocationAndRenewalReasons Reasons { get; }public RevocationAndRenewalReasons Reasons { get; }Public ReadOnly Property Reasons As RevocationAndRenewalReasonspublic RevocationAndRenewalReasons Reasons { get; }

    Property Value

  • RenewalId
    RenewalId
    RenewalId
    RenewalId

    Returns the GUID for the renewal object.

    public string RenewalId { get; }public string RenewalId { get; }Public ReadOnly Property RenewalId As stringpublic string RenewalId { get; }

    Property Value

    • string
      string
      string
      string

      The renewal object GUID.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute

Details

Assembly

Windows.Media.Protection.dll