IAssetFile Interface

Represents an file belonging to an Asset.

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

Syntax

'Declaration
Public Interface IAssetFile
'Usage
Dim instance As IAssetFile
public interface IAssetFile
public interface class IAssetFile
type IAssetFile =  interface end
public interface IAssetFile

The IAssetFile type exposes the following members.

Properties

  Name Description
Public property Asset Gets the asset that this file belongs to.
Public property ContentChecksum Obsolete. Optional. A hexadecimal number representing a MD5 (RFC 1321) message digest value. This value is set by the client or client library to serve as a validation of the successful upload of the content.
Public property ContentFileSize AssetFile size (in bytes) of the content.
Public property Created This value is set by Media Services at creation time. It represents the number of milliseconds since midnight Jan 1, 1970.
Public property EncryptionKeyId Optional. Encrypted ContentKey Id.
Public property EncryptionScheme Optional. The encryption scheme used for this file. The valid values are: "StorageEncryption" or "CommonEncryption".
Public property EncryptionVersion Optional. Current supported version for both StorageEncryption and CommonEncryption is "1.0".
Public property Id Unique identifier set by Media Services.
Public property InitializationVector Optional. The initialization vector used for encryption.
Public property IsEncrypted Optional. This value should be set to true if this file is storage encrypted.
Public property IsPrimary Optional. Determines if this file is the primary file in a multi-file Asset.
Public property LastModified This value is updated by Media Services after any property changes are made. It represents the number of milliseconds since midnight Jan 1, 1970.
Public property MimeType Optional. Media Services does not inspect any blob that you uploaded, so you must manually set the mime type. For example, "text/plain" or "video/x-ms-wmv" are valid values to use.
Public property Name Optional. Friendly name for your IAssetFile. The default value is the filename you used during your file upload.
Public property ParentAssetId Asset Id of the Asset that this file is associated with.

Top

Methods

  Name Description
Public method Delete Deletes this instance.
Public method DeleteAsync Asynchronously deletes this instance.
Public method Download Downloads the represented file to the specified destination path.
Public method DownloadAsync Asynchronously downloads the represented file to the specified destination path.
Public method Update Saves this instance.
Public method UpdateAsync Asynchronously updates this instance.
Public method Upload Uploads the file with the given path.
Public method UploadAsync Uploads the file with given path asynchronously.

Top

Events

  Name Description
Public event DownloadProgressChanged Occurs when a file download progresses.
Public event UploadProgressChanged Occurs when the upload progress is updated.

Top

See Also

Reference

Microsoft.WindowsAzure.MediaServices.Client Namespace