BaseAssetCollection.Create Method (String[], AssetCreationOptions)

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Creates an asset containing the provided files.

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

Usage

'Usage
Dim instance As BaseAssetCollection
Dim files As String()
Dim options As AssetCreationOptions
Dim returnValue As IAsset

returnValue = instance.Create(files, options)

Syntax

'Declaration
Public Function Create ( _
    files As String(), _
    options As AssetCreationOptions _
) As IAsset
public IAsset Create (
    string[] files,
    AssetCreationOptions options
)
public:
IAsset^ Create (
    array<String^>^ files, 
    AssetCreationOptions options
)
public IAsset Create (
    String[] files, 
    AssetCreationOptions options
)
public function Create (
    files : String[], 
    options : AssetCreationOptions
) : IAsset

Parameters

  • files
    The files that make up an asset.

Return Value

An asset representing the provided files created according to the specified options.

Exceptions

Exception type Condition
ArgumentNullException

files

ArgumentException

files

Remarks

The first file in the provided files collection will be specified as the assets primary file.

By default, Media Services encrypts assets and their included files for transfer and storage. For information on encryption options and creating assets, see Ingest Assets with the Media Services SDK for .NET.

The default upload access duration is 12 hours.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows 7, Windows Server 2008, Windows 8 Beta

Target Platforms

See Also

Reference

BaseAssetCollection Class
BaseAssetCollection Members
Microsoft.WindowsAzure.MediaServices.Client Namespace

Build Date:

2012-06-07