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 | |
---|---|---|
![]() |
Asset | Gets the asset that this file belongs to. |
![]() |
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. |
![]() |
ContentFileSize | AssetFile size (in bytes) of the content. |
![]() |
Created | This value is set by Media Services at creation time. It represents the number of milliseconds since midnight Jan 1, 1970. |
![]() |
EncryptionKeyId | Optional. Encrypted ContentKey Id. |
![]() |
EncryptionScheme | Optional. The encryption scheme used for this file. The valid values are: "StorageEncryption" or "CommonEncryption". |
![]() |
EncryptionVersion | Optional. Current supported version for both StorageEncryption and CommonEncryption is "1.0". |
![]() |
Id | Unique identifier set by Media Services. |
![]() |
InitializationVector | Optional. The initialization vector used for encryption. |
![]() |
IsEncrypted | Optional. This value should be set to true if this file is storage encrypted. |
![]() |
IsPrimary | Optional. Determines if this file is the primary file in a multi-file Asset. |
![]() |
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. |
![]() |
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. |
![]() |
Name | Optional. Friendly name for your IAssetFile. The default value is the filename you used during your file upload. |
![]() |
ParentAssetId | Asset Id of the Asset that this file is associated with. |
Top
Methods
Name | Description | |
---|---|---|
![]() |
Delete | Deletes this instance. |
![]() |
DeleteAsync | Asynchronously deletes this instance. |
![]() |
Download | Downloads the represented file to the specified destination path. |
![]() |
DownloadAsync | Asynchronously downloads the represented file to the specified destination path. |
![]() |
Update | Saves this instance. |
![]() |
UpdateAsync | Asynchronously updates this instance. |
![]() |
Upload | Uploads the file with the given path. |
![]() |
UploadAsync | Uploads the file with given path asynchronously. |
Top
Events
Name | Description | |
---|---|---|
![]() |
DownloadProgressChanged | Occurs when a file download progresses. |
![]() |
UploadProgressChanged | Occurs when the upload progress is updated. |
Top