Method | Description | |
---|---|---|
ParameterAttribute ( string name, string shortName = null, bool optional = false, string defaultValue = null, bool allowAppSetting = false, bool allowConnectionString = false, bool allowEnvironmentVariable = false ) : System |
Constructs the parameter attribute
|
public ParameterAttribute ( string name, string shortName = null, bool optional = false, string defaultValue = null, bool allowAppSetting = false, bool allowConnectionString = false, bool allowEnvironmentVariable = false ) : System | ||
name | string | Primary name of the parameter |
shortName | string | Optional shorthand of the parameter |
optional | bool | Indicates whether the parameter MUST be specified or can be omitted |
defaultValue | string | Provides a default value to use when other values could not be found |
allowAppSetting | bool |
/// Indicates whether parameter value resolution can go and look in the <appSettings> section of
/// the current application configuration file for a value. Will look for the key specified by |
allowConnectionString | bool |
/// Indicates whether parameter value resolution can go and look in the <connectionStrings> section of
/// the current application configuration file for a value. Will look for the name specified by |
allowEnvironmentVariable | bool |
/// Indicates whether parameter value resolution can go and look for an environment variable for a value.
/// Will look for the name specified by |
return | System |