C# 클래스 GoCommando.ParameterAttribute

상속: System.Attribute
파일 보기 프로젝트 열기: rebus-org/GoCommando

공개 메소드들

메소드 설명
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

메소드 상세

ParameterAttribute() 공개 메소드

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 ///
리턴 System