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.
Implements
Inherited Members
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)
Namespace: IPA.Config
Assembly: IPA.Loader.dll
Syntax
[AttributeUsage(AttributeTargets.Parameter)]
public sealed 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[] | the list of config extensions in order of preference |