ParameterDescriptor 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.
Provides information for binding command line input to a method or constructor parameter.
public ref class ParameterDescriptor : System::CommandLine::Binding::IValueDescriptor
public class ParameterDescriptor : System.CommandLine.Binding.IValueDescriptor
type ParameterDescriptor = class
interface IValueDescriptor
Public Class ParameterDescriptor
Implements IValueDescriptor
- Inheritance
-
ParameterDescriptor
- Implements
Properties
| Name | Description |
|---|---|
| AllowsNull |
Gets a value indicating whether |
| HasDefaultValue |
Gets a value determining whether there is a default value. |
| Parent |
The method descriptor that this constructor belongs to. |
| ValueName |
The name of the value. |
| ValueType |
The type of the value. |
Methods
| Name | Description |
|---|---|
| GetDefaultValue() |
Gets the default value, if any. |
| ToString() |
Returns a string that represents the current object. |
Extension Methods
| Name | Description |
|---|---|
| BuildAlias(IValueDescriptor) | |
| BuildOption(ParameterDescriptor) | |