ContentKeyBaseCollection.CreateAsync Method (Guid, Byte[])

Asynchronously creates a content key with the specifies key identifier and value.

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

Syntax

'Declaration
Public Function CreateAsync ( _
    keyId As Guid, _
    contentKey As Byte() _
) As Task(Of IContentKey)
'Usage
Dim instance As ContentKeyBaseCollection 
Dim keyId As Guid 
Dim contentKey As Byte()
Dim returnValue As Task(Of IContentKey)

returnValue = instance.CreateAsync(keyId, _
    contentKey)
public Task<IContentKey> CreateAsync(
    Guid keyId,
    byte[] contentKey
)
public:
Task<IContentKey^>^ CreateAsync(
    Guid keyId, 
    array<unsigned char>^ contentKey
)
member CreateAsync : 
        keyId:Guid * 
        contentKey:byte[] -> Task<IContentKey> 
public function CreateAsync(
    keyId : Guid, 
    contentKey : byte[]
) : Task<IContentKey>

Parameters

  • contentKey
    Type: array<System.Byte[]
    The value of the content key.

Return Value

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

See Also

Reference

ContentKeyBaseCollection Class

CreateAsync Overload

Microsoft.WindowsAzure.MediaServices.Client Namespace