IContentKey.GetEncryptedKeyValueAsync Method

Asynchronously gets the encrypted content key value.

Namespace:  Microsoft.WindowsAzure.MediaServices.Client
Assembly:  Microsoft.WindowsAzure.MediaServices.Client (in Microsoft.WindowsAzure.MediaServices.Client.dll)

Syntax

'Declaration
Function GetEncryptedKeyValueAsync ( _
    certToEncryptTo As X509Certificate2 _
) As Task(Of Byte())
'Usage
Dim instance As IContentKey 
Dim certToEncryptTo As X509Certificate2 
Dim returnValue As Task(Of Byte())

returnValue = instance.GetEncryptedKeyValueAsync(certToEncryptTo)
Task<byte[]> GetEncryptedKeyValueAsync(
    X509Certificate2 certToEncryptTo
)
Task<array<unsigned char>^>^ GetEncryptedKeyValueAsync(
    X509Certificate2^ certToEncryptTo
)
abstract GetEncryptedKeyValueAsync : 
        certToEncryptTo:X509Certificate2 -> Task<byte[]> 
function GetEncryptedKeyValueAsync(
    certToEncryptTo : X509Certificate2
) : Task<byte[]>

Parameters

Return Value

Type: System.Threading.Tasks.Task<array<Byte[]>
A function delegate that returns the future result to be available through the Task&lt;byte[]&gt;.

See Also

Reference

IContentKey Interface

Microsoft.WindowsAzure.MediaServices.Client Namespace