BaseAssetCollection.CreateFromDirectory Method (String, 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 from the files in a directory.
Namespace: Microsoft.WindowsAzure.MediaServices.Client
Assembly: Microsoft.WindowsAzure.MediaServices.Client (in Microsoft.WindowsAzure.MediaServices.Client.dll)
Usage
'Usage
Dim instance As BaseAssetCollection
Dim directory As String
Dim primaryFile As String
Dim options As AssetCreationOptions
Dim returnValue As IAsset
returnValue = instance.CreateFromDirectory(directory, primaryFile, options)
Syntax
'Declaration
Public Function CreateFromDirectory ( _
directory As String, _
primaryFile As String, _
options As AssetCreationOptions _
) As IAsset
public IAsset CreateFromDirectory (
string directory,
string primaryFile,
AssetCreationOptions options
)
public:
IAsset^ CreateFromDirectory (
String^ directory,
String^ primaryFile,
AssetCreationOptions options
)
public IAsset CreateFromDirectory (
String directory,
String primaryFile,
AssetCreationOptions options
)
public function CreateFromDirectory (
directory : String,
primaryFile : String,
options : AssetCreationOptions
) : IAsset
Parameters
- directory
The directory containing the files making up an asset.
- primaryFile
The name of the file to be used as the primary file when creating the asset.
- options
A AssetCreationOptions value that specifies how to create an asset.
Return Value
An asset representing the files in the provided directory with the specified primaryFile, creating according to the specified creation options.
Remarks
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