ComponentRenewal 클래스

정의

애플리케이션이 보호된 미디어 콘텐츠를 재생하기 위해 업데이트해야 하는 구성 요소의 갱신을 시작할 수 있도록 합니다.

public ref class ComponentRenewal abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Media.Protection.ProtectionRenewalContract, 65536)]
class ComponentRenewal final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Media.Protection.ProtectionRenewalContract), 65536)]
public static class ComponentRenewal
Public Class ComponentRenewal
상속
Object Platform::Object IInspectable ComponentRenewal
특성

Windows 요구 사항

디바이스 패밀리
Windows Desktop Extension SDK (10.0.10240.0에서 도입되었습니다.)
API contract
Windows.Media.Protection.ProtectionRenewalContract (v1.0에서 도입되었습니다.)

예제

이 예제에서는 ComponentLoadFailedEventHandler를 보여줍니다. 루프는 실패한 구성 요소를 반복합니다. 그리고 RenewSystemComponentsAsync 가 호출됩니다. RevocationAndRenewalInformationComponentLoadFailedEventArgs를 통해 전달됩니다.

private async void Manager_ComponentLoadFailed(MediaProtectionManager sender, ComponentLoadFailedEventArgs e)
{
    for (var i = 0; i < e.Information.Items.Count; i++)
    {
        Debug.WriteLine('Component Name=' +
                    e.Information.Items[i].Name +
                    "<BR/>");
        Debug.WriteLine('Failure Reason=' +
                    e.Information.Items[i].Reasons.ToString(16) +
                    "<BR/>");
        Debug.WriteLine('Renewal GUID=' +
                    e.Information.Items[i].RenewalId +
                    "<BR/>");
    }



    //  Invoke the revocation               
    var renewalStatus = await ComponentRenewal.RenewSystemComponentsAsync(e.Information);
    Debug.WriteLine("RenewSystemComponentsAsync: " +
                    renewalStatus.ToString() +
                    "<BR/>");

    e.Completion.Complete(false);
}

메서드

RenewSystemComponentsAsync(RevocationAndRenewalInformation)

사용자에게 메시지를 표시한 후 중요한 콘텐츠 보호 구성 요소의 업데이트를 시작합니다.

적용 대상