RevocationAndRenewalItem
RevocationAndRenewalItem
RevocationAndRenewalItem
RevocationAndRenewalItem
Class
Definition
Represents a component that is being revoked and renewed with a trusted component.
public : sealed class RevocationAndRenewalItem : IRevocationAndRenewalItempublic sealed class RevocationAndRenewalItem : IRevocationAndRenewalItemPublic NotInheritable Class RevocationAndRenewalItem Implements IRevocationAndRenewalItem// You can use this class in JavaScript.
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
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);
}
);
};
Remarks
An instance of this object is returned by the RevocationAndRenewalInformation.Items property. This information can be passed to ComponentRenewal.RenewSystemComponentsAsync for system processing.
Properties
HeaderHash HeaderHash HeaderHash HeaderHash
Returns the header hash for the component being revoked.
public : PlatForm::String HeaderHash { get; }public string HeaderHash { get; }Public ReadOnly Property HeaderHash As string// You can use this property in JavaScript.
- Value
- PlatForm::String string string string
The string for the header hash.
Name Name Name Name
Returns the name for the component being revoked.
public : PlatForm::String Name { get; }public string Name { get; }Public ReadOnly Property Name As string// You can use this property in JavaScript.
- Value
- PlatForm::String string string string
The name of the component.
PublicKeyHash PublicKeyHash PublicKeyHash PublicKeyHash
Returns the public key hash for the component.
public : PlatForm::String PublicKeyHash { get; }public string PublicKeyHash { get; }Public ReadOnly Property PublicKeyHash As string// You can use this property in JavaScript.
- Value
- PlatForm::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 RevocationAndRenewalReasons// You can use this property in JavaScript.
- Value
- RevocationAndRenewalReasons RevocationAndRenewalReasons RevocationAndRenewalReasons RevocationAndRenewalReasons
Defines reasons for the revocation and renewal of a certificate for a media component.
RenewalId RenewalId RenewalId RenewalId
Returns the GUID for the renewal object.
public : PlatForm::String RenewalId { get; }public string RenewalId { get; }Public ReadOnly Property RenewalId As string// You can use this property in JavaScript.
- Value
- PlatForm::String string string string
The renewal object GUID.