Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    AssetUpgraderAttribute Class

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

    Describes which upgrader type to use to upgrade an asset, depending on this current version number.

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

    [AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
    public class AssetUpgraderAttribute : Attribute, _Attribute
    Name Description
    Constructors
    AssetUpgraderAttribute(String, Int32, Int32, Type)

    Initializes a new instance of the AssetUpgraderAttribute with a single supported initial version number.

    AssetUpgraderAttribute(String, String, String, Type)

    Initializes a new instance of the AssetUpgraderAttribute with a range of supported initial version numbers.

    Properties
    AssetUpgraderType

    Gets or sets the type of upgrader to instantiate to upgrade the asset.

    Name

    Gets or sets the dependency name.

    StartVersion

    Gets or sets the minimal initial version number this upgrader can work on.

    TargetVersion

    Gets or sets the target version number of this upgrader.

    | Improve this Doc View Source

    Constructors


    AssetUpgraderAttribute(String, Int32, Int32, Type)

    Initializes a new instance of the AssetUpgraderAttribute with a single supported initial version number.

    public AssetUpgraderAttribute(string name, int startVersion, int targetVersion, Type assetUpgraderType)
    Parameters
    Type Name Description
    System.String name

    The dependency name.

    System.Int32 startVersion

    The initial version number this upgrader can work on.

    System.Int32 targetVersion

    The target version number of this upgrader.

    System.Type assetUpgraderType

    The type of upgrader to instantiate to upgrade the asset.


    AssetUpgraderAttribute(String, String, String, Type)

    Initializes a new instance of the AssetUpgraderAttribute with a range of supported initial version numbers.

    public AssetUpgraderAttribute(string name, string startMinVersion, string targetVersion, Type assetUpgraderType)
    Parameters
    Type Name Description
    System.String name

    The dependency name.

    System.String startMinVersion

    The minimal initial version number this upgrader can work on.

    System.String targetVersion

    The target version number of this upgrader.

    System.Type assetUpgraderType

    The type of upgrader to instantiate to upgrade the asset.

    | Improve this Doc View Source

    Properties


    AssetUpgraderType

    Gets or sets the type of upgrader to instantiate to upgrade the asset.

    public Type AssetUpgraderType { get; set; }
    Property Value
    Type Description
    System.Type

    Name

    Gets or sets the dependency name.

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

    StartVersion

    Gets or sets the minimal initial version number this upgrader can work on.

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

    TargetVersion

    Gets or sets the target version number of this upgrader.

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

    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