• Introduction
  • C# API
  • GraphQL API
  • Home
  • Blog
  • Docs
  • GitHub
  • Snowflake.Configuration.Attributes
  • ConfigurationOptionAttribute
Show / Hide Table of Contents
  • Snowflake.Configuration
    • ConfigurationCollection<T>
    • ConfigurationCollectionDescriptor<T>
    • ConfigurationOptionDescriptor
    • ConfigurationOptionType
    • ConfigurationSection<T>
    • ConfigurationSectionDescriptor<T>
    • ConfigurationValueCollection
    • IConfigurationCollection
    • IConfigurationCollection<T>
    • IConfigurationCollectionDescriptor
    • IConfigurationOptionDescriptor
    • IConfigurationProperty
    • IConfigurationSection
    • IConfigurationSection<T>
    • IConfigurationSectionDescriptor
    • IConfigurationTypeMapper
    • IConfigurationValue
    • IConfigurationValueCollection
    • ISelectionOptionDescriptor
    • PathType
    • SelectionOptionDescriptor
  • Snowflake.Configuration.Attributes
    • ConfigurationOptionAttribute
    • ConfigurationSectionAttribute
    • ConfigurationTargetAttribute
    • ConfigurationTargetMemberAttribute
    • CustomMetadataAttribute
    • InputTemplateAttribute
    • SelectionOptionAttribute
  • Snowflake.Configuration.Input
    • DictionaryInputMapping
    • IDeviceInputMapping
    • IInputOption
    • IInputSerializer
    • IInputTemplate
    • IInputTemplate<T>
    • InputConfigurationSection<T>
    • InputOption
    • InputOptionAttribute
    • InputTemplate<T>
  • Snowflake.Configuration.Interceptors
    • ConfigurationInterceptor
  • Snowflake.Configuration.Serialization
    • AbstractConfigurationNode<T>
    • BooleanConfigurationNode
    • ConfigurationTarget
    • ConfigurationTraversalContext
    • DecimalConfigurationNode
    • DeviceCapabilityElementConfigurationNode
    • EnumConfigurationNode
    • IAbstractConfigurationNode
    • IAbstractConfigurationNode<T>
    • IConfigurationSerializationContext<T>
    • IConfigurationTarget
    • IConfigurationTransformer<TOutput>
    • IConfigurationTraversalContext
    • IntegralConfigurationNode
    • ListConfigurationNode
    • StringConfigurationNode
    • UnknownConfigurationNode
  • Snowflake.Configuration.Serialization.Serializers
    • AbstractStringConfigurationSerializer
    • ConfigurationSerializer<T>
    • StringSerializationContext
    • StringSerializationContextExtensions
  • Snowflake.Configuration.Serialization.Serializers.Implementations
    • SimpleCfgConfigurationSerializer
    • SimpleIniConfigurationSerializer
    • SimpleJsonConfigurationSerializer
    • SimpleXmlConfigurationSerializer
  • Snowflake.Extensibility
    • IEmptyPluginConfiguration
    • ILogger
    • IPlugin
    • IPluginCollection<T>
    • LogLevel
    • PluginAttribute
    • PluginCollection<T>
    • PluginInfoFields
  • Snowflake.Extensibility.Configuration
    • IPluginConfigurationStore
  • Snowflake.Extensibility.Provisioning
    • IPluginProperties
    • IPluginProvision
    • IProvisionedPlugin
    • PluginProvision
    • ProvisionedPlugin
  • Snowflake.Extensibility.Provisioning.Standalone
    • StandalonePlugin
    • StandalonePluginProvision
  • Snowflake.Extensibility.Queueing
    • IAsyncJobQueue
    • IAsyncJobQueue<T>
    • IAsyncJobQueue<TAsyncEnumerable, T>
    • IAsyncJobQueueFactory
  • Snowflake.Filesystem
    • DirectoryExtensions
    • FileExtensions
    • IDirectory
    • IFile
    • IIndelibleDirectory
    • IReadOnlyDirectory
    • IReadOnlyFile
  • Snowflake.Input.Controller
    • ControllerElement
    • ControllerElementCollection
    • ControllerElementExtensions
    • ControllerElementInfo
    • ControllerElementType
    • ControllerElementTypeExtensions
    • ControllerId
    • IControllerElementCollection
    • IControllerElementInfo
    • IControllerLayout
    • InvalidControllerIdException
  • Snowflake.Input.Controller.Mapped
    • ControllerElementMapping
    • ControllerElementMappingProfile
    • IControllerElementMappingProfile
    • IControllerElementMappingProfileStore
  • Snowflake.Input.Device
    • DefaultDeviceCapabilityLabels
    • DeviceCapability
    • DeviceCapabilityClass
    • DeviceCapabilityClasses
    • DeviceCapabilityExtensions
    • DeviceLayoutMapping
    • DictionaryDeviceCapabilityLabels
    • DirectInputDeviceInstance
    • IDeviceCapabilityLabels
    • IDeviceLayoutMapping
    • IInputDevice
    • IInputDeviceInstance
    • InputDriver
    • KeyboardDeviceInstance
    • PassthroughDeviceInstance
    • XInputDeviceInstance
  • Snowflake.Installation
    • AsyncInstallTask<T>
    • AsyncInstallTaskEnumerable<T>
    • ITaskResult
    • TaskResult
    • TaskResult<T>
  • Snowflake.Installation.Extensibility
    • GameInstaller
    • IGameInstaller
    • IInstallable
    • Installable
    • SupportedPlatformAttribute
  • Snowflake.Installation.Tasks
    • CopyDirectoryContentsTask
    • CopyFileTask
    • ExecuteAsyncTask<TResult>
    • ExtractZipTask
    • FailureTask<T>
  • Snowflake.Loader
    • IComposable
    • IModule
    • IModuleEnumerator
    • IModuleLoader<T>
    • ImportServiceAttribute
    • IServiceRepository
    • Module
  • Snowflake.Model.Database.Exceptions
    • DependentEntityNotExistsException
    • EntityAlreadyExistsException
  • Snowflake.Model.Database.Migrations
    • Empty
    • InitialCreate
  • Snowflake.Model.Game
    • Game
    • IGame
    • IGameExtension
    • IGameLibrary
    • IPlatformInfo
    • ISystemFile
    • PlatformId
  • Snowflake.Model.Game.LibraryExtensions
    • GameConfigurationExtensionExtensions
    • GameFileExtensionExtensions
    • IGameConfigurationExtension
    • IGameConfigurationExtensionProvider
    • IGameExtensionProvider
    • IGameExtensionProvider<TExtension>
    • IGameFileExtension
    • IGameFileExtensionProvider
  • Snowflake.Model.Records
    • FileRecord
    • GameRecord
    • IMetadataCollection
    • IRecord
    • IRecordMetadata
    • IRecordMetadataQuery
    • MetadataCollection
    • RecordMetadata
  • Snowflake.Model.Records.File
    • FileMetadataKeys
    • IFileRecord
    • ImageMetadataKeys
    • ImageTypes
  • Snowflake.Model.Records.Game
    • GameMetadataKeys
    • IGameRecord
    • IGameRecordQuery
  • Snowflake.Orchestration.Extensibility
    • EmulatedController
    • EmulatedPortsManager
    • EmulatorCompatibility
    • EmulatorOrchestrator
    • GameEmulation
    • GameEmulation<TConfigurationCollection>
    • GameEmulationState
    • IEmulatedController
    • IEmulatedPortDeviceEntry
    • IEmulatedPortsManager
    • IEmulatedPortStore
    • IEmulatorOrchestrator
    • IGameEmulation
  • Snowflake.Orchestration.Extensibility.Extensions
    • DeviceEnumeratorExtensions
  • Snowflake.Orchestration.Process
    • IEmulatorExecutable
    • IEmulatorExecutableProvider
    • IProcessBuilder
    • ProcessExtensions
  • Snowflake.Orchestration.Saving
    • GameFileExtensionGameSaveManagerExtensions
    • IGameSaveManager
    • ISaveGame
    • ISaveProfile
    • SaveGame
    • SaveManagementStrategy
  • Snowflake.Orchestration.SystemFiles
    • ISystemFileProvider
  • Snowflake.Persistence
    • ISqlDatabase
    • SqliteDatabase
    • SqliteMemoryDatabase
  • Snowflake.Remoting.Electron
    • IElectronPackage
    • IElectronPackageProvider
  • Snowflake.Remoting.Kestrel
    • IKestrelServerMiddlewareProvider
    • IKestrelWebServerService
  • Snowflake.Romfile
    • IFileSignature
    • IRomFileInfo
    • IStructuredFilename
    • NamingConvention
    • RomFileInfo
    • StructuredFilename
  • Snowflake.Romfile.Extensions
    • StringExtensions
  • Snowflake.Romfile.Tokenizer
    • FieldType
    • GoodToolsTokenClassifier
    • NoIntroTokenClassifier
    • StructuredFilenameToken
  • Snowflake.Scraping
    • GameScrapeContext
    • IScrapeContext
    • ISeed
    • ISeedRootContext
    • Seed
    • SeedContent
    • SeedRootContext
  • Snowflake.Scraping.Extensibility
    • AttachTarget
    • Culler
    • Directive
    • DirectiveAttribute
    • FileInstallationTraverserBase
    • GameMetadataTraverserBase
    • ICuller
    • IFileInstallationTraverser
    • IGameMetadataTraverser
    • IScraper
    • IScraperDirective
    • ITraverser<TProducts, TEffectTarget>
    • Scraper
    • SeedBuilder
    • SeedTree
    • Traverser<TProducts, TEffectTarget>
  • Snowflake.Services
    • IContentDirectoryProvider
    • IDeviceEnumerator
    • ILogProvider
    • IPluginManager
    • IServiceEnumerator
    • IServiceRegistrationProvider
    • IStoneProvider
  • Snowflake.Shiragame
    • IRomInfo
    • ISerialInfo
    • IShiragameProvider
    • RomInfo
    • SerialInfo

Class ConfigurationOptionAttribute

Represents one option in an emulator configuration inside a configuration section. Typically configuration options must be a double, bool, integer or an enum value in order to be safe, type information may be lost when serializing into a wire format.

Inheritance
System.Object
System.Attribute
ConfigurationOptionAttribute
Inherited Members
System.Attribute.Equals(System.Object)
System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type, System.Boolean)
System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.Module, 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.Assembly)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, 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.MemberInfo)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Module)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type, System.Boolean)
System.Attribute.GetHashCode()
System.Attribute.IsDefaultAttribute()
System.Attribute.IsDefined(System.Reflection.Assembly, System.Type)
System.Attribute.IsDefined(System.Reflection.Assembly, System.Type, System.Boolean)
System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type)
System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type, System.Boolean)
System.Attribute.IsDefined(System.Reflection.Module, System.Type)
System.Attribute.IsDefined(System.Reflection.Module, System.Type, System.Boolean)
System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type)
System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type, System.Boolean)
System.Attribute.Match(System.Object)
System.Attribute.TypeId
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Snowflake.Configuration.Attributes
Assembly: Snowflake.Framework.Primitives.dll
Syntax
[AttributeUsage(AttributeTargets.Property)]
public sealed class ConfigurationOptionAttribute : Attribute

Constructors

ConfigurationOptionAttribute(String, Boolean)

Initializes a new instance of the ConfigurationOptionAttribute class. Represents one option in an emulator configuration inside a configuration section. Typically configuration options must be a double, bool, integer or an enum value in order to be safe, type information may be lost when serializing into a wire format.

Declaration
public ConfigurationOptionAttribute(string optionName, bool default)
Parameters
Type Name Description
System.String optionName
System.Boolean default

ConfigurationOptionAttribute(String, Double)

Initializes a new instance of the ConfigurationOptionAttribute class. Represents one option in an emulator configuration inside a configuration section. Typically configuration options must be a double, bool, integer or an enum value in order to be safe, type information may be lost when serializing into a wire format.

Declaration
public ConfigurationOptionAttribute(string optionName, double default)
Parameters
Type Name Description
System.String optionName

The name of the option

System.Double default

The default value of the option. Note that only strings, enums and primitive types are supported.

ConfigurationOptionAttribute(String, Int32)

Initializes a new instance of the ConfigurationOptionAttribute class. Represents one option in an emulator configuration inside a configuration section. Typically configuration options must be a double, bool, integer or an enum value in order to be safe, type information may be lost when serializing into a wire format.

Declaration
public ConfigurationOptionAttribute(string optionName, int default)
Parameters
Type Name Description
System.String optionName
System.Int32 default

ConfigurationOptionAttribute(String, Object)

Initializes a new instance of the ConfigurationOptionAttribute class. Represents one option in an emulator configuration inside a configuration section. Typically configuration options must be a double, bool, integer or an enum value in order to be safe, type information may be lost when serializing into a wire format.

Declaration
public ConfigurationOptionAttribute(string optionName, object default)
Parameters
Type Name Description
System.String optionName

The name of the option

System.Object default

The default value of the option. Note that only strings, enums and primitive types are supported.

ConfigurationOptionAttribute(String, String)

Initializes a new ConfigurationOptionAttribute. Represents one option in an emulator configuration inside a configuration section. Typically configuration options must be a double, bool, integer or an enum value in order to be safe, type information may be lost when serializing into a wire format.

Declaration
public ConfigurationOptionAttribute(string optionName, string default)
Parameters
Type Name Description
System.String optionName

The name of the option

System.String default

The default value of the option. Note that only strings, enums and primitive types are supported.

ConfigurationOptionAttribute(String, String, PathType)

Initializes a new ConfigurationOptionAttribute that represents a path. Represents one option in an emulator configuration inside a configuration section. Typically configuration options must be a double, bool, integer or an enum value in order to be safe, type information may be lost when serializing into a wire format.

Declaration
public ConfigurationOptionAttribute(string optionName, string default, PathType pathType)
Parameters
Type Name Description
System.String optionName

The name of the option

System.String default

The default value of the option. Note that only strings, enums and primitive types are supported.

PathType pathType

The type of the path this points to.

ConfigurationOptionAttribute(String, String, String)

Initializes a new ConfigurationOptionAttribute with a non default unset. This must be used if the default value is null.

Represents one option in an emulator configuration inside a configuration section. Typically configuration options must be a double, bool, integer or an enum value in order to be safe, type information may be lost when serializing into a wire format.

Declaration
public ConfigurationOptionAttribute(string optionName, string default, string unset)
Parameters
Type Name Description
System.String optionName

The name of the option

System.String default

The default value of the option. Note that only strings, enums and primitive types are supported.

System.String unset

Properties

Default

Gets the default value of this option.

Declaration
public object Default { get; }
Property Value
Type Description
System.Object

Description

Gets or sets a description of this configuration option

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

DisplayName

Gets or sets the display name for human readable purposes of this option

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

Flag

Gets or sets a value indicating whether a 'flag' property is never serialized into the configuration option, and is instead used to cause side effects to the configuration during emulator instance creation by the emulator handler. If a flag affects the configuration, it should be placed in the same section it modifies.

Declaration
public bool Flag { get; set; }
Property Value
Type Description
System.Boolean

Increment

Gets or sets the increment to increase a numerical value by

Declaration
public double Increment { get; set; }
Property Value
Type Description
System.Double

Max

Gets or sets the maximum value allowable for a number value

Declaration
public double Max { get; set; }
Property Value
Type Description
System.Double

Min

Gets or sets the minimum value allowable for a number value

Declaration
public double Min { get; set; }
Property Value
Type Description
System.Double

OptionName

Gets the name of the option as it appears inside the emulator configuration

Declaration
public string OptionName { get; }
Property Value
Type Description
System.String

PathType

If this option is a path, specifies the type of the path.

Declaration
public PathType PathType { get; }
Property Value
Type Description
PathType

Private

Gets or sets a value indicating whether whether or not this option is private (not ever displayed to the user)

Declaration
public bool Private { get; set; }
Property Value
Type Description
System.Boolean

Simple

Gets or sets a value indicating whether whether or not this option is a simple option (displayed in "Simple" configuration mode)

Declaration
public bool Simple { get; set; }
Property Value
Type Description
System.Boolean

Unset

A serialization of the null string. If a string option type is set to null, then when serialized will be set to this unset.

Declaration
public string Unset { get; }
Property Value
Type Description
System.String

See Also

System.Attribute
In This Article
  • Constructors
    • ConfigurationOptionAttribute(String, Boolean)
    • ConfigurationOptionAttribute(String, Double)
    • ConfigurationOptionAttribute(String, Int32)
    • ConfigurationOptionAttribute(String, Object)
    • ConfigurationOptionAttribute(String, String)
    • ConfigurationOptionAttribute(String, String, PathType)
    • ConfigurationOptionAttribute(String, String, String)
  • Properties
    • Default
    • Description
    • DisplayName
    • Flag
    • Increment
    • Max
    • Min
    • OptionName
    • PathType
    • Private
    • Simple
    • Unset
  • See Also
Built with ❤️ by @chyyran. Text content licensed under CC-BY-SA 4.0.