Compartilhar via


ChoiceDescription Constructors

Definition

Overloads

ChoiceDescription(String)

Initializes an new instance of ChoiceDescription and defines the Label value.

ChoiceDescription(String, String)

Initializes an new instance of ChoiceDescription and defines the Label and HelpMessage values.

ChoiceDescription(String)

Initializes an new instance of ChoiceDescription and defines the Label value.

public:
 ChoiceDescription(System::String ^ label);
public:
 ChoiceDescription(Platform::String ^ label);
 ChoiceDescription(std::wstring const & label);
public ChoiceDescription (string label);
new System.Management.Automation.Host.ChoiceDescription : string -> System.Management.Automation.Host.ChoiceDescription
Public Sub New (label As String)

Parameters

label
String

The label to identify this field description

Exceptions

label is null or empty.

Applies to

ChoiceDescription(String, String)

Initializes an new instance of ChoiceDescription and defines the Label and HelpMessage values.

public:
 ChoiceDescription(System::String ^ label, System::String ^ helpMessage);
public:
 ChoiceDescription(Platform::String ^ label, Platform::String ^ helpMessage);
 ChoiceDescription(std::wstring const & label, std::wstring const & helpMessage);
public ChoiceDescription (string label, string helpMessage);
new System.Management.Automation.Host.ChoiceDescription : string * string -> System.Management.Automation.Host.ChoiceDescription
Public Sub New (label As String, helpMessage As String)

Parameters

label
String

The label to identify this field description.

helpMessage
String

The help message for this field.

Exceptions

label is null or empty.

helpMessage is null.

Applies to