Option<T> Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Option<T>(String, String) |
Obsolete.
|
Option<T>(String, String, T) | |
Option<T>(String, String, T, OptionStorageLocation[]) |
Option<T>(String, String)
- Source:
- Option%601.cs
- Source:
- Option%601.cs
- Source:
- Option%601.cs
- Source:
- Option%601.cs
- Source:
- Option%601.cs
- Source:
- Option%601.cs
- Source:
- Option%601.cs
- Source:
- Option%601.cs
- Source:
- Option%601.cs
- Source:
- Option%601.cs
- Source:
- Option%601.cs
- Source:
- Option%601.cs
- Source:
- Option%601.cs
- Source:
- Option%601.cs
- Source:
- Option%601.cs
- Source:
- Option%601.cs
- Source:
- Option%601.cs
- Source:
- Option%601.cs
- Source:
- Option%601.cs
- Source:
- Option.cs
- Source:
- Option.cs
- Source:
- Option.cs
- Source:
- Option.cs
Caution
Use a constructor that specifies an explicit default value.
public:
Option(System::String ^ feature, System::String ^ name);
public Option (string feature, string name);
[System.Obsolete("Use a constructor that specifies an explicit default value.")]
public Option (string feature, string name);
new Microsoft.CodeAnalysis.Options.Option<'T> : string * string -> Microsoft.CodeAnalysis.Options.Option<'T>
[<System.Obsolete("Use a constructor that specifies an explicit default value.")>]
new Microsoft.CodeAnalysis.Options.Option<'T> : string * string -> Microsoft.CodeAnalysis.Options.Option<'T>
Public Sub New (feature As String, name As String)
Parameters
- feature
- String
- name
- String
- Attributes
Applies to
Option<T>(String, String, T)
- Source:
- Option%601.cs
- Source:
- Option%601.cs
- Source:
- Option%601.cs
- Source:
- Option%601.cs
- Source:
- Option%601.cs
- Source:
- Option%601.cs
- Source:
- Option%601.cs
- Source:
- Option%601.cs
- Source:
- Option%601.cs
- Source:
- Option%601.cs
- Source:
- Option%601.cs
- Source:
- Option%601.cs
- Source:
- Option%601.cs
- Source:
- Option%601.cs
- Source:
- Option%601.cs
- Source:
- Option%601.cs
- Source:
- Option%601.cs
- Source:
- Option%601.cs
- Source:
- Option%601.cs
- Source:
- Option.cs
- Source:
- Option.cs
- Source:
- Option.cs
- Source:
- Option.cs
public:
Option(System::String ^ feature, System::String ^ name, T defaultValue);
public Option (string feature, string name, T defaultValue);
new Microsoft.CodeAnalysis.Options.Option<'T> : string * string * 'T -> Microsoft.CodeAnalysis.Options.Option<'T>
Public Sub New (feature As String, name As String, defaultValue As T)
Parameters
- feature
- String
- name
- String
- defaultValue
- T
Applies to
Option<T>(String, String, T, OptionStorageLocation[])
- Source:
- Option%601.cs
- Source:
- Option%601.cs
- Source:
- Option%601.cs
- Source:
- Option%601.cs
- Source:
- Option%601.cs
- Source:
- Option%601.cs
- Source:
- Option%601.cs
- Source:
- Option%601.cs
- Source:
- Option%601.cs
- Source:
- Option%601.cs
- Source:
- Option%601.cs
- Source:
- Option%601.cs
- Source:
- Option%601.cs
- Source:
- Option%601.cs
- Source:
- Option%601.cs
- Source:
- Option%601.cs
- Source:
- Option%601.cs
- Source:
- Option%601.cs
- Source:
- Option%601.cs
- Source:
- Option.cs
- Source:
- Option.cs
- Source:
- Option.cs
- Source:
- Option.cs
public:
Option(System::String ^ feature, System::String ^ name, T defaultValue, ... cli::array <Microsoft::CodeAnalysis::Options::OptionStorageLocation ^> ^ storageLocations);
public Option (string feature, string name, T defaultValue, params Microsoft.CodeAnalysis.Options.OptionStorageLocation[] storageLocations);
new Microsoft.CodeAnalysis.Options.Option<'T> : string * string * 'T * Microsoft.CodeAnalysis.Options.OptionStorageLocation[] -> Microsoft.CodeAnalysis.Options.Option<'T>
Public Sub New (feature As String, name As String, defaultValue As T, ParamArray storageLocations As OptionStorageLocation())
Parameters
- feature
- String
- name
- String
- defaultValue
- T
- storageLocations
- OptionStorageLocation[]