Option<T> Class
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.
An global option. An instance of this class can be used to access an option value from an OptionSet.
generic <typename T>
public ref class Option : Microsoft::CodeAnalysis::Options::IOption
public class Option<T>
public class Option<T> : IEquatable<Microsoft.CodeAnalysis.Options.IOption2>
type Option<'T> = class
interface IOption
type Option<'T> = class
interface IEquatable<IOption2>
interface IOption
Public Class Option(Of T)
Public Class Option(Of T)
Implements IEquatable(Of IOption2)
Type Parameters
- T
- Inheritance
-
Option<T>
- Implements
-
IOption IEquatable<Microsoft.CodeAnalysis.Options.IOption2>
Constructors
Option<T>(String, String, T, OptionStorageLocation[]) | Microsoft.CodeAnalysis.Options.Option2`1 |
Option<T>(String, String, T) | Microsoft.CodeAnalysis.Options.Option2`1 |
Option<T>(String, String) | Microsoft.CodeAnalysis.Options.Option2`1 |
Properties
DefaultValue |
The default value of the option. |
Feature |
Feature this option is associated with. |
Name |
The name of the option. |
StorageLocations | Microsoft.CodeAnalysis.Options.Option2`1.StorageLocations |
Type |
The type of the option value. |
Methods
Equals(Object) | Microsoft.CodeAnalysis.Options.Option2`1 |
GetHashCode() | Microsoft.CodeAnalysis.Options.Option2`1 |
ToString() | Microsoft.CodeAnalysis.Options.Option2`1 |
Operators
Implicit(Option<T> to OptionKey) | Microsoft.CodeAnalysis.Options.Option2`1 |
Explicit Interface Implementations
IEquatable<IOption2>.Equals(IOption2) | Microsoft.CodeAnalysis.Options.Option2`1 |
IOption.DefaultValue | Microsoft.CodeAnalysis.Options.Option2`1 |
IOption.IsPerLanguage | Microsoft.CodeAnalysis.Options.Option2`1 |
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET