Microsoft.WindowsAzure.MediaServices.Client.ContentKeyCollection.Create C# (CSharp) Method

Create() public method

Creates a content key with the specified key identifier and value.
public Create ( System.Guid keyId, byte contentKey, string name ) : IContentKey
keyId System.Guid The key identifier.
contentKey byte The value of the content key.
name string A friendly name for the content key.
return IContentKey
        public override IContentKey Create(Guid keyId, byte[] contentKey, string name)
        {
            try
            {
                Task<IContentKey> task = this.CreateAsync(keyId, contentKey, name, ContentKeyType.CommonEncryption);

                return task.Result;
            }
            catch (AggregateException exception)
            {
                throw exception.InnerException;
            }
        }

Same methods

ContentKeyCollection::Create ( System.Guid keyId, byte contentKey, string name, ContentKeyType contentKeyType ) : IContentKey