HdcpSession.SetDesiredMinProtectionAsync(HdcpProtection) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Asynchronously attempts to set the protection of the HdcpSession instance with the given protection level.
public:
virtual IAsyncOperation<HdcpSetProtectionResult> ^ SetDesiredMinProtectionAsync(HdcpProtection protection) = SetDesiredMinProtectionAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<HdcpSetProtectionResult> SetDesiredMinProtectionAsync(HdcpProtection const& protection);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<HdcpSetProtectionResult> SetDesiredMinProtectionAsync(HdcpProtection protection);
function setDesiredMinProtectionAsync(protection)
Public Function SetDesiredMinProtectionAsync (protection As HdcpProtection) As IAsyncOperation(Of HdcpSetProtectionResult)
Parameters
- protection
- HdcpProtection
The level of protection at which to set the HdcpSession instance.
Returns
The result of the operation.
- Attributes
Remarks
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.