Share via


ContentKeyCollection.Create Method (Guid, Byte[], String)

Creates a content key with the specified key identifier and value.

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

Syntax

'Declaration
Public Overrides Function Create ( _
    keyId As Guid, _
    contentKey As Byte(), _
    name As String _
) As IContentKey
'Usage
Dim instance As ContentKeyCollection 
Dim keyId As Guid 
Dim contentKey As Byte()
Dim name As String 
Dim returnValue As IContentKey 

returnValue = instance.Create(keyId, contentKey, _
    name)
public override IContentKey Create(
    Guid keyId,
    byte[] contentKey,
    string name
)
public:
virtual IContentKey^ Create(
    Guid keyId, 
    array<unsigned char>^ contentKey, 
    String^ name
) override
abstract Create : 
        keyId:Guid * 
        contentKey:byte[] * 
        name:string -> IContentKey  
override Create : 
        keyId:Guid * 
        contentKey:byte[] * 
        name:string -> IContentKey
public override function Create(
    keyId : Guid, 
    contentKey : byte[], 
    name : String
) : IContentKey

Parameters

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

Return Value

Type: Microsoft.WindowsAzure.MediaServices.Client.IContentKey
A function delegate that returns the future result to be available through the Task&lt;IContentKey&gt;.

See Also

Reference

ContentKeyCollection Class

Create Overload

Microsoft.WindowsAzure.MediaServices.Client Namespace