Search Results for

    Show / Hide Table of Contents

    Interface IMediaVersionService

    Service for using media versions

    Namespace: ImageVault.Common.Services
    Assembly: ImageVault.Common.dll
    Syntax
    public interface IMediaVersionService : IService

    Methods

    CleanupDeleted(Int32)

    Performs cleanup of a deleted media version

    Declaration
    void CleanupDeleted(int versionId)
    Parameters
    Type Name Description
    System.Int32 versionId
    Remarks

    Will only work on a version that is not the current version

    Delete(Int32)

    Deletes the supplied version

    Declaration
    void Delete(int versionId)
    Parameters
    Type Name Description
    System.Int32 versionId

    The id of the version to delete

    Remarks

    To be able to delete a specific version, the user must have Contribute access to the vault where the media item resides.

    Further more, the media item cannot have it's current version set to the version to be deleted, it needs to be reassigned first.

    GetDeletedVersions(Int32, Int32)

    Get all versions that has been deleted and where the parent media item is not marked for delete

    Declaration
    IList<MediaVersion> GetDeletedVersions(int skip, int take)
    Parameters
    Type Name Description
    System.Int32 skip
    System.Int32 take
    Returns
    Type Description
    System.Collections.Generic.IList<MediaVersion>

    SaveComment(Int32, String)

    Saves the supplied comment and optionally, sets the version as the current version

    Declaration
    void SaveComment(int versionId, string comment)
    Parameters
    Type Name Description
    System.Int32 versionId

    The id of the version to modify

    System.String comment

    The comment to set on the version

    SetCurrent(Int32)

    Sets the supplied version as the current version

    Declaration
    void SetCurrent(int versionId)
    Parameters
    Type Name Description
    System.Int32 versionId

    The id of the version that should be set as the current version.

    Undelete(Int32)

    Unmarks a media version as deleted

    Declaration
    void Undelete(int versionId)
    Parameters
    Type Name Description
    System.Int32 versionId
    Remarks

    Will only work on a version that is not the current version

    Extension Methods

    EnumExtensions.GetNames<TEnum>(TEnum)
    In This Article
    Back to top (c) Meriworks 2002-2022