Share via


ContentKeyBaseCollection.CreateAsync Method (Guid, Byte[], String)

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 MustOverride Function CreateAsync ( _
    keyId As Guid, _
    contentKey As Byte(), _
    name As String _
) As Task(Of IContentKey)
'Usage
Dim instance As ContentKeyBaseCollection 
Dim keyId As Guid 
Dim contentKey As Byte()
Dim name As String 
Dim returnValue As Task(Of IContentKey)

returnValue = instance.CreateAsync(keyId, _
    contentKey, name)
public abstract Task<IContentKey> CreateAsync(
    Guid keyId,
    byte[] contentKey,
    string name
)
public:
virtual Task<IContentKey^>^ CreateAsync(
    Guid keyId, 
    array<unsigned char>^ contentKey, 
    String^ name
) abstract
abstract CreateAsync : 
        keyId:Guid * 
        contentKey:byte[] * 
        name:string -> Task<IContentKey> 
public abstract function CreateAsync(
    keyId : Guid, 
    contentKey : byte[], 
    name : String
) : 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