Option<T> Constructors
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.
Option<T>(String, String) |
Obsolete.
|
Option<T>(String, String, T) | |
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.cs
- Source:
- Option.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);
C#
public Option(string feature, string name);
C#
[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
Roslyn 4.13.0 és más verziók
Termék | Verziók (Elavult) |
---|---|
Roslyn | 3.0.0, 3.1.0, 3.2.0, 3.2.1, 3.3.1, 3.4.0, 3.5.0 (4.2.0, 4.3.0, 4.4.0, 4.5.0, 4.6.0, 4.7.0, 4.8.0, 4.9.2, 3.6.0, 3.7.0, 3.8.0, 3.9.0, 3.10.0, 3.11.0, 4.0.1, 4.1.0, 4.12.2, 4.13.0) |
- 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%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);
C#
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
Roslyn 4.13.0 és más verziók
Termék | Verziók |
---|---|
Roslyn | 4.2.0, 4.3.0, 4.4.0, 4.5.0, 4.6.0, 4.7.0, 4.8.0, 4.9.2, 3.0.0, 3.1.0, 3.2.0, 3.2.1, 3.3.1, 3.4.0, 3.5.0, 3.6.0, 3.7.0, 3.8.0, 3.9.0, 3.10.0, 3.11.0, 4.0.1, 4.1.0, 4.12.2, 4.13.0 |
- 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%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);
C#
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[]
Applies to
Roslyn 4.13.0 és más verziók
Termék | Verziók |
---|---|
Roslyn | 4.2.0, 4.3.0, 4.4.0, 4.5.0, 4.6.0, 4.7.0, 4.8.0, 4.9.2, 3.0.0, 3.1.0, 3.2.0, 3.2.1, 3.3.1, 3.4.0, 3.5.0, 3.6.0, 3.7.0, 3.8.0, 3.9.0, 3.10.0, 3.11.0, 4.0.1, 4.1.0, 4.12.2, 4.13.0 |
Dolgozzon együtt velünk a GitHubon
A tartalom forrása a GitHubon található, ahol létrehozhat és áttekinthet problémákat és lekéréses kérelmeket is. További információért tekintse meg a közreműködői útmutatónkat.
.NET-visszajelzés
A(z) .NET egy nyílt forráskód projekt. Visszajelzés adásához válasszon egy hivatkozást: