-api-id | -api-type |
---|---|
M:Windows.Media.Protection.HdcpSession.SetDesiredMinProtectionAsync(Windows.Media.Protection.HdcpProtection) |
winrt method |
Asynchronously attempts to set the protection of the HdcpSession instance with the given protection level.
The level of protection at which to set the HdcpSession instance.
The result of the operation.
It is a good idea to listen for the Completed event on this function, and then to check the results by calling GetResults on the operation and compare it to the values of the HdcpSetProtectionResult enumeration. This way, you can implement your own logic depending on the result of trying to set HDCP. For a usage example, see HdcpSession.