Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    AssetFormatVersionAttribute Class

    Namespace: Stride.Core.Assets
    Assembly: Stride.Core.Assets.dll

    Describes what format version this asset currently uses, for asset upgrading.

    System.Object → System.Attribute → AssetFormatVersionAttribute
    Derived from AssetFormatVersionAttribute:

    [AttributeUsage(AttributeTargets.Class)]
    public class AssetFormatVersionAttribute : Attribute, _Attribute
    Name Description
    Constructors
    AssetFormatVersionAttribute(String, Int32, Int32)

    Initializes a new instance of the AssetFormatVersionAttribute class.

    AssetFormatVersionAttribute(String, String, String)

    Initializes a new instance of the AssetFormatVersionAttribute class.

    Properties
    MinUpgradableVersion

    Gets the minimum format version that supports upgrade for this asset.

    Name

    Gets or sets the dependency name.

    Version

    Gets the current format version of this asset.

    | Improve this Doc View Source

    Constructors


    AssetFormatVersionAttribute(String, Int32, Int32)

    Initializes a new instance of the AssetFormatVersionAttribute class.

    public AssetFormatVersionAttribute(string name, int version, int minUpgradableVersion = 0)
    Parameters
    Type Name Description
    System.String name

    The dependency name.

    System.Int32 version

    The current format version of this asset.

    System.Int32 minUpgradableVersion

    The minimum format version that supports upgrade for this asset.


    AssetFormatVersionAttribute(String, String, String)

    Initializes a new instance of the AssetFormatVersionAttribute class.

    public AssetFormatVersionAttribute(string name, string version, string minUpgradableVersion = null)
    Parameters
    Type Name Description
    System.String name

    The dependency name.

    System.String version

    The current format version of this asset.

    System.String minUpgradableVersion

    The minimum format version that supports upgrade for this asset.

    | Improve this Doc View Source

    Properties


    MinUpgradableVersion

    Gets the minimum format version that supports upgrade for this asset.

    public PackageVersion MinUpgradableVersion { get; set; }
    Property Value
    Type Description
    Stride.Core.PackageVersion

    The minimum format version that supports upgrade for this asset.


    Name

    Gets or sets the dependency name.

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

    Version

    Gets the current format version of this asset.

    public PackageVersion Version { get; set; }
    Property Value
    Type Description
    Stride.Core.PackageVersion

    The current format version of this asset.


    Inherited Members

    System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type)
    System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo)
    System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Boolean)
    System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type)
    System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type, System.Boolean)
    System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type)
    System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo)
    System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type)
    System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Boolean)
    System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type)
    System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type, System.Boolean)
    System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type)
    System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type)
    System.Attribute.GetCustomAttributes(System.Reflection.Module)
    System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type, System.Boolean)
    System.Attribute.IsDefined(System.Reflection.Module, System.Type)
    System.Attribute.IsDefined(System.Reflection.Module, System.Type, System.Boolean)
    System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type)
    System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type)
    System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.Assembly)
    System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Boolean)
    System.Attribute.IsDefined(System.Reflection.Assembly, System.Type)
    System.Attribute.IsDefined(System.Reflection.Assembly, System.Type, System.Boolean)
    System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type)
    System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type, System.Boolean)
    System.Attribute.Equals(System.Object)
    System.Attribute.GetHashCode()
    System.Attribute.Match(System.Object)
    System.Attribute.IsDefaultAttribute()
    System.Attribute.System.Runtime.InteropServices._Attribute.GetTypeInfoCount(System.UInt32)
    System.Attribute.System.Runtime.InteropServices._Attribute.GetTypeInfo(System.UInt32, System.UInt32, System.IntPtr)
    System.Attribute.System.Runtime.InteropServices._Attribute.GetIDsOfNames(System.Guid, System.IntPtr, System.UInt32, System.UInt32, System.IntPtr)
    System.Attribute.System.Runtime.InteropServices._Attribute.Invoke(System.UInt32, System.Guid, System.UInt32, System.Int16, System.IntPtr, System.IntPtr, System.IntPtr, System.IntPtr)
    System.Attribute.TypeId

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation