C# Class Microsoft.WindowsAzure.MediaServices.Client.AssetCollection

Represents a collection of IAsset.
Inheritance: AssetBaseCollection
Afficher le fichier Open project: Azure/azure-sdk-for-media-services Class Usage Examples

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
AssetCollection ( MediaContextBase cloudMediaContext ) : System

Initializes a new instance of the AssetCollection class.

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

Method Details

Create() public méthode

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.
Résultat IAsset

Create() public méthode

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.
Résultat IAsset

CreateAsync() public méthode

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.
Résultat Task

CreateAsync() public méthode

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.
Résultat Task