Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Option<T>.DefaultValueFactory Property

Definition

Namespace:
System.CommandLine
Assembly:
System.CommandLine.dll
Package:
System.CommandLine v3.0.0-preview.5.26302.115
Source:
Option{T}.cs
Source:
Option{T}.cs

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.

Gets or sets the delegate to invoke to create the default value.

public:
 property Func<System::CommandLine::Parsing::ArgumentResult ^, T> ^ DefaultValueFactory { Func<System::CommandLine::Parsing::ArgumentResult ^, T> ^ get(); void set(Func<System::CommandLine::Parsing::ArgumentResult ^, T> ^ value); };
public Func<System.CommandLine.Parsing.ArgumentResult,T>? DefaultValueFactory { get; set; }
member this.DefaultValueFactory : Func<System.CommandLine.Parsing.ArgumentResult, 'T> with get, set
Public Property DefaultValueFactory As Func(Of ArgumentResult, T)

Property Value

Applies to


Feedback

Was this page helpful?