Delen via


EnumChoice Constructors

Definition

Overloads

EnumChoice(EnumChoice)
EnumChoice(String, String)

Represents a value the user can choose for an enum setting.

EnumChoice(EnumChoice)

protected EnumChoice (Microsoft.VisualStudio.Utilities.UnifiedSettings.EnumChoice original);
Protected Sub New (original As EnumChoice)

Parameters

original
EnumChoice

Applies to

EnumChoice(String, String)

Represents a value the user can choose for an enum setting.

public EnumChoice (string Moniker, string Title);
new Microsoft.VisualStudio.Utilities.UnifiedSettings.EnumChoice : string * string -> Microsoft.VisualStudio.Utilities.UnifiedSettings.EnumChoice
Public Sub New (Moniker As String, Title As String)

Parameters

Moniker
String

A nonlocalized string identifying this choice. Must be unique only among the choices of this enum. This is what gets passed as the value parameter to SetValueAsync<T>(String, T, CancellationToken) when the user selects it. The user never sees this value, so no casing/formatting conventions are applicable.

Title
String

A localized string to display for this choice.

Applies to