Partager via


Option<T> Class

Definition

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