ChoiceDescription Constructors
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.
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.