Class Config.PreferAttribute
Specifies that a particular parameter is preferred to be a specific type of IConfigProvider. If it is not available, also specifies backups. If none are available, the default is used.
Implements
Inherited Members
Namespace: IPA.Config
Assembly: IPA.Loader.dll
Syntax
[AttributeUsage(AttributeTargets.Parameter)]
public class PreferAttribute : Attribute, _Attribute
Constructors
| Improve this Doc View SourcePreferAttribute(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 SourcePreferenceOrder
The order of preference for the config type.
Declaration
public string[] PreferenceOrder { get; }
Property Value
Type | Description |
---|---|
String[] |