Search Results for

    Show / Hide Table of Contents

    Class AssetInfo

    Represents asset information.

    Inheritance
    System.Object
    AssetInfo
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Quark.CMSAdapters.QPP.Data
    Assembly: Quark.CMSAdapters.QPP.dll
    Syntax
    public class AssetInfo

    Constructors

    AssetInfo()

    Initializes a new instance of the AssetInfo class.

    Declaration
    public AssetInfo()

    AssetInfo(Int64, Int64, Int64, String, Boolean, String, String)

    Initializes a new instance of the AssetInfo class.

    Declaration
    public AssetInfo(long assetId, long majorVersion, long minorVersion, string collectionPath, bool isDataDoc, string originalFileName, string assetName)
    Parameters
    Type Name Description
    System.Int64 assetId

    The asset id.

    System.Int64 majorVersion

    The major version.

    System.Int64 minorVersion

    The minor version.

    System.String collectionPath

    The collection path.

    System.Boolean isDataDoc

    if set to true [is data document].

    System.String originalFileName

    Name of the original file.

    System.String assetName

    Name of the asset.

    AssetInfo(Int64, String, Boolean, String, String)

    Initializes a new instance of the AssetInfo class.

    Declaration
    public AssetInfo(long assetId, string collectionPath, bool isDataDoc, string originalFileName, string assetName)
    Parameters
    Type Name Description
    System.Int64 assetId

    The asset id.

    System.String collectionPath

    The collection path.

    System.Boolean isDataDoc

    if set to true is DataDoc.

    System.String originalFileName

    Name of the original file.

    System.String assetName

    Name of the asset.

    AssetInfo(String)

    Initializes a new instance of the AssetInfo class.

    Declaration
    public AssetInfo(string urn)
    Parameters
    Type Name Description
    System.String urn

    The urn.

    Fields

    URNPREFIX

    The urn prefix.

    Declaration
    public const string URNPREFIX = "qpp://"
    Field Value
    Type Description
    System.String

    Properties

    AssetId

    Gets or sets the asset id.

    Declaration
    public long AssetId { get; set; }
    Property Value
    Type Description
    System.Int64

    The asset id.

    AssetName

    Gets or sets the name of the asset.

    Declaration
    public string AssetName { get; set; }
    Property Value
    Type Description
    System.String

    The name of the asset.

    AssetVersion

    Gets or sets the asset version.

    Declaration
    public AssetVersion AssetVersion { get; set; }
    Property Value
    Type Description
    AssetVersion

    The asset version.

    CollectionPath

    Gets or sets the collection path.

    Declaration
    public string CollectionPath { get; set; }
    Property Value
    Type Description
    System.String

    The collection path.

    ComponentInfo

    Gets or sets the component information.

    Declaration
    public OfficeComponentInfo ComponentInfo { get; set; }
    Property Value
    Type Description
    OfficeComponentInfo

    The component information.

    IsDataDoc

    Gets or sets a value indicating whether asset is DataDoc

    Declaration
    public bool IsDataDoc { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if asset is DataDoc ; otherwise, false.

    IsExportedFromLocalFile

    Gets or sets a value indicating whether this asset was exported from local file

    Declaration
    public bool IsExportedFromLocalFile { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if this asset was exported from local file ; otherwise, false.

    IsPinned

    Gets or sets a value indicating whether asset is pinned to specific version.

    Declaration
    public bool IsPinned { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if asset is pinned to specific version ; otherwise, false.

    RelationId

    Gets or sets the relation identifier.

    Declaration
    public long RelationId { get; set; }
    Property Value
    Type Description
    System.Int64

    The relation identifier.

    Methods

    GetVersionInfo()

    Returns the version info for the asset.

    Declaration
    public string GetVersionInfo()
    Returns
    Type Description
    System.String

    The Version

    ToUrn()

    Returns a URN for the asset.

    Declaration
    public string ToUrn()
    Returns
    Type Description
    System.String

    The URN

    Extension Methods

    UtilityExtensions.DeepClone<T>(T)
    UtilityExtensions.IsMethodImplemented(Object, String)
    UtilityExtensions.LogError(Object, String)
    UtilityExtensions.ShowAndLogError(Object)
    UtilityExtensions.ShowAndLogError(Object, Window)
    UtilityExtensions.ShowAndLogError(Object, String, Window, String, String)
    UtilityExtensions.GetJsonValue<T>(Object, String, Boolean)
    UtilityExtensions.ToAssetInfo(Object, Nullable<Boolean>)
    In This Article
    Back to top © 2022 Quark Software Inc. All rights reserved.