With Method
With(string[], IDictionary<string, string>)
Sets the command-line arguments to use when building the options.
Declaration
public TBuilder With(string[] args, IDictionary<string, string> switchMappings = null)
Parameters
| string[] | args | The command-line arguments.  | 
    
| IDictionary<string, string> | switchMappings | Optional command-line switch mappings.  | 
    
Returns
| TBuilder | This options builder.  | 
    
With(string, string)
Adds a key/value pair to use when building the options.
Declaration
public TBuilder With(string key, string value)
Parameters
| string | key | The key.  | 
    
| string | value | The value.  | 
    
Returns
| TBuilder | This options builder.  | 
    
With(string, object)
Adds a key/value pair to use when building the options.
Declaration
public TBuilder With(string key, object value)
Parameters
| string | key | The key.  | 
    
| object | value | The value.  | 
    
Returns
| TBuilder | This options builder.  | 
    
With(Action<IConfiguration, TOptions>)
Adds an TOptions configuration delegate.
Declaration
public TBuilder With(Action<IConfiguration, TOptions> configure)
Parameters
| Action<IConfiguration, TOptions> | configure | The delegate.  | 
    
Returns
| TBuilder | This options builder.  | 
    
With(Action<TOptions>)
Adds an TOptions configuration delegate.
Declaration
public TBuilder With(Action<TOptions> configure)
Parameters
| Action<TOptions> | configure | The delegate.  | 
    
Returns
| TBuilder | This options builder.  |