ComponentRenewal
ComponentRenewal
ComponentRenewal
ComponentRenewal
Class
Definition
Enables applications to initiate renewal of components which need updating in order to play protected media content.
public : static class ComponentRenewalpublic static class ComponentRenewalPublic Static Class ComponentRenewal// You can use this class in JavaScript.
- Attributes
Windows 10 requirements
| Device family |
Windows Desktop Extension SDK (introduced v10.0.10240.0)
|
| API contract |
Windows.Media.Protection.ProtectionRenewalContract (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);
}
);
};
Methods
RenewSystemComponentsAsync(RevocationAndRenewalInformation) RenewSystemComponentsAsync(RevocationAndRenewalInformation) RenewSystemComponentsAsync(RevocationAndRenewalInformation) RenewSystemComponentsAsync(RevocationAndRenewalInformation)
Initiates updating of critical content protection components after prompting the user.
public : static IAsyncOperationWithProgress<RenewalStatus, unsigned int> RenewSystemComponentsAsync(RevocationAndRenewalInformation information)public static IAsyncOperationWithProgress<RenewalStatus, uint> RenewSystemComponentsAsync(RevocationAndRenewalInformation information)Public Static Function RenewSystemComponentsAsync(information As RevocationAndRenewalInformation) As IAsyncOperationWithProgress( Of RenewalStatus, uint )// You can use this method in JavaScript.
Parameters
- information
- RevocationAndRenewalInformation RevocationAndRenewalInformation RevocationAndRenewalInformation RevocationAndRenewalInformation
Revocation and renewal information.
Returns
IAsyncOperationWithProgress<RenewalStatus, unsigned int>
IAsyncOperationWithProgress<RenewalStatus, uint>
IAsyncOperationWithProgress<RenewalStatus, uint>
IAsyncOperationWithProgress<RenewalStatus, uint>
An object that is used to control the asynchronous operation.