C# Класс Microsoft.WindowsAzure.MediaServices.Client.AssetCollection

Represents a collection of IAsset.
Наследование: AssetBaseCollection
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Create ( string assetName, AssetCreationOptions options ) : IAsset

Creates an asset that does not contain any files and AssetState is Initialized.

Create ( string assetName, string storageAccountName, AssetCreationOptions options ) : IAsset

Creates an asset for specified storage account. Asset does not contain any files and AssetState is Initialized.

CreateAsync ( string assetName, AssetCreationOptions options, CancellationToken cancellationToken ) : Task

Asynchronously creates an asset that does not contain any files and AssetState is Initialized.

CreateAsync ( string assetName, string storageAccountName, AssetCreationOptions options, CancellationToken cancellationToken ) : Task

Asynchronously creates an asset for specified storage account. Asset does not contain any files and AssetState is Initialized.

Приватные методы

Метод Описание
AssetCollection ( MediaContextBase cloudMediaContext ) : System

Initializes a new instance of the AssetCollection class.

CreateStorageContentKey ( AssetData tempAsset, Microsoft.WindowsAzure.MediaServices.Client.NullableFileEncryption fileEncryption, IMediaDataServiceContext dataContext ) : ContentKeyData

Описание методов

Create() публичный Метод

Creates an asset that does not contain any files and AssetState is Initialized.
public Create ( string assetName, AssetCreationOptions options ) : IAsset
assetName string The asset name.
options AssetCreationOptions A which will be associated with created asset.
Результат IAsset

Create() публичный Метод

Creates an asset for specified storage account. Asset does not contain any files and AssetState is Initialized.
public Create ( string assetName, string storageAccountName, AssetCreationOptions options ) : IAsset
assetName string The asset name.
storageAccountName string
options AssetCreationOptions A which will be associated with created asset.
Результат IAsset

CreateAsync() публичный Метод

Asynchronously creates an asset that does not contain any files and AssetState is Initialized.
public CreateAsync ( string assetName, AssetCreationOptions options, CancellationToken cancellationToken ) : Task
assetName string The asset name.
options AssetCreationOptions A which will be associated with created asset.
cancellationToken System.Threading.CancellationToken The cancellation token.
Результат Task

CreateAsync() публичный Метод

Asynchronously creates an asset for specified storage account. Asset does not contain any files and AssetState is Initialized.
public CreateAsync ( string assetName, string storageAccountName, AssetCreationOptions options, CancellationToken cancellationToken ) : Task
assetName string The asset name.
storageAccountName string The storage account name
options AssetCreationOptions A which will be associated with created asset.
cancellationToken System.Threading.CancellationToken The cancellation token.
Результат Task