Language

ParameterDescriptor Class

Definition

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 null is allowed to be passed for the target parameter.

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)

Applies to