Search Results for

    Show / Hide Table of Contents

    Class Config.PreferAttribute

    Specifies that a particular parameter is preferred to use a particular IConfigProvider. If it is not available, also specifies backups. If none are available, the default is used.

    Inheritance
    Object
    Config.PreferAttribute
    Namespace: IPA.Config
    Assembly: IPA.Loader.dll
    Syntax
    public sealed class PreferAttribute : Attribute

    Constructors

    | Improve this Doc View Source

    PreferAttribute(String[])

    Constructs the attribute with a specific preference list. Each entry is the extension without a '.'

    Declaration
    public PreferAttribute(params string[] preference)
    Parameters
    Type Name Description
    String[] preference

    The preferences in order of preference.

    Properties

    | Improve this Doc View Source

    PreferenceOrder

    The order of preference for the config type.

    Declaration
    public string[] PreferenceOrder { get; }
    Property Value
    Type Description
    String[]

    the list of config extensions in order of preference

    Extension Methods

    ReflectionUtil.SetField<T, U>(T, String, U)
    ReflectionUtil.GetField<U, T>(T, String)
    ReflectionUtil.SetProperty<T, U>(T, String, U)
    ReflectionUtil.GetProperty<U, T>(T, String)
    ReflectionUtil.InvokeMethod<U, T>(T, String, Object[])
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX