IAsset IAsset Interface

Represents an asset that can be an input to jobs or tasks.

Syntax

Declaration

public interface IAssetPublic Interface IAsset

Properties summary

Gets a collection of files contained by the asset.

Get a collection of filters for this asset

Gets the Content Keys associated with the asset.

Gets the delivery policies associated with the asset.

Gets the Locators associated with this asset.

Gets the parent assets that were used to create the asset.

Gets IStorageAccount associated with the Asset

Gets storage account name associated with the Asset

Methods summary

Deletes this asset instance including underlying azure storage container

Deletes this asset instance

Asynchronously deletes this asset instance including underlying azure storage container

Asynchronously deletes this asset instance.

Updates this asset instance.

Asynchronously updates this asset instance.

Properties

  • AlternateId
    AlternateId
    string AlternateId { get; set; }Property AlternateId As String

    Property Value

  • AssetFiles
    AssetFiles

    Gets a collection of files contained by the asset.

    AssetFileBaseCollection AssetFiles { get; }ReadOnly Property AssetFiles As AssetFileBaseCollection

    Property Value

  • AssetFilters
    AssetFilters

    Get a collection of filters for this asset

    AssetFilterBaseCollection AssetFilters { get; }ReadOnly Property AssetFilters As AssetFilterBaseCollection

    Property Value

  • AssetType
    AssetType
    AssetType AssetType { get; }ReadOnly Property AssetType As AssetType

    Property Value

  • ContentKeys
    ContentKeys

    Gets the Content Keys associated with the asset.

    IList<IContentKey> ContentKeys { get; }ReadOnly Property ContentKeys As IList(Of IContentKey)

    Property Value

  • Created
    Created
    DateTime Created { get; }ReadOnly Property Created As Date

    Property Value

  • DeliveryPolicies
    DeliveryPolicies

    Gets the delivery policies associated with the asset.

    IList<IAssetDeliveryPolicy> DeliveryPolicies { get; }ReadOnly Property DeliveryPolicies As IList(Of IAssetDeliveryPolicy)

    Property Value

  • FormatOption
    FormatOption
    AssetFormatOption FormatOption { get; }ReadOnly Property FormatOption As AssetFormatOption

    Property Value

  • Id
    Id
    string Id { get; }ReadOnly Property Id As String

    Property Value

  • IsStreamable
    IsStreamable
    bool IsStreamable { get; }ReadOnly Property IsStreamable As Boolean

    Property Value

  • LastModified
    LastModified
    DateTime LastModified { get; }ReadOnly Property LastModified As Date

    Property Value

  • Locators
    Locators

    Gets the Locators associated with this asset.

    ReadOnlyCollection<ILocator> Locators { get; }ReadOnly Property Locators As ReadOnlyCollection(Of ILocator)

    Property Value

    Remarks

    This collection is not modifiable. Instead a SAS locator is created from calling CreateSasLocator(IAsset, IAccessPolicy).

  • Name
    Name
    string Name { get; set; }Property Name As String

    Property Value

  • Options
    Options
    AssetCreationOptions Options { get; }ReadOnly Property Options As AssetCreationOptions

    Property Value

  • ParentAssets
    ParentAssets

    Gets the parent assets that were used to create the asset.

    ReadOnlyCollection<IAsset> ParentAssets { get; }ReadOnly Property ParentAssets As ReadOnlyCollection(Of IAsset)

    Property Value

  • State
    State
    AssetState State { get; }ReadOnly Property State As AssetState

    Property Value

  • StorageAccount
    StorageAccount

    Gets IStorageAccount associated with the Asset

    IStorageAccount StorageAccount { get; }ReadOnly Property StorageAccount As IStorageAccount

    Property Value

  • StorageAccountName
    StorageAccountName

    Gets storage account name associated with the Asset

    string StorageAccountName { get; }ReadOnly Property StorageAccountName As String

    Property Value

  • SupportsDynamicEncryption
    SupportsDynamicEncryption
    bool SupportsDynamicEncryption { get; }ReadOnly Property SupportsDynamicEncryption As Boolean

    Property Value

  • Uri
    Uri
    Uri Uri { get; }ReadOnly Property Uri As Uri

    Property Value

Methods

  • Delete()
    Delete()

    Deletes this asset instance including underlying azure storage container

    void Delete()Sub Delete
  • Delete(Boolean)
    Delete(Boolean)

    Deletes this asset instance

    IMediaDataServiceResponse Delete(bool keepAzureStorageContainer)Function Delete(keepAzureStorageContainer As Boolean) As IMediaDataServiceResponse

    Parameters

    • keepAzureStorageContainer

      if set to true underlying storage asset container is preserved during the delete operation.

    Returns

  • DeleteAsync()
    DeleteAsync()

    Asynchronously deletes this asset instance including underlying azure storage container

    Task DeleteAsync()Function DeleteAsync As Task

    Returns

    • A function delegate that returns the future result to be available through the Task.

  • DeleteAsync(Boolean)
    DeleteAsync(Boolean)

    Asynchronously deletes this asset instance.

    Task<IMediaDataServiceResponse> DeleteAsync(bool keepAzureStorageContainer)Function DeleteAsync(keepAzureStorageContainer As Boolean) As Task(Of IMediaDataServiceResponse)

    Parameters

    • keepAzureStorageContainer

      if set to true underlying storage asset container is preserved during the delete operation.

    Returns

  • GetEncryptionState(AssetDeliveryProtocol)
    GetEncryptionState(AssetDeliveryProtocol)
    AssetEncryptionState GetEncryptionState(AssetDeliveryProtocol protocolsToCheck)Function GetEncryptionState(protocolsToCheck As AssetDeliveryProtocol) As AssetEncryptionState

    Parameters

    Returns

  • Update()
    Update()

    Updates this asset instance.

    void Update()Sub Update
  • UpdateAsync()
    UpdateAsync()

    Asynchronously updates this asset instance.

    Task UpdateAsync()Function UpdateAsync As Task

    Returns

    • A function delegate that returns the future result to be available through the Task.

Details

Namespace

Microsoft.WindowsAzure.MediaServices.Client

Assembly

Microsoft.WindowsAzure.MediaServices.Client.dll