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

Creates a content key with the specific 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 Create ( _
    keyId As Guid, _
    contentKey As Byte(), _
    name As String _
) As IContentKey
'Usage
Dim instance As ContentKeyBaseCollection 
Dim keyId As Guid 
Dim contentKey As Byte()
Dim name As String 
Dim returnValue As IContentKey 

returnValue = instance.Create(keyId, contentKey, _
    name)
public abstract IContentKey Create(
    Guid keyId,
    byte[] contentKey,
    string name
)
public:
virtual IContentKey^ Create(
    Guid keyId, 
    array<unsigned char>^ contentKey, 
    String^ name
) abstract
abstract Create : 
        keyId:Guid * 
        contentKey:byte[] * 
        name:string -> IContentKey
public abstract 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
Returns IContentKey that can be associated with an IAsset.

See Also

Reference

ContentKeyBaseCollection Class

Create Overload

Microsoft.WindowsAzure.MediaServices.Client Namespace