C# 클래스 PaytonByrd.ProcessConfiguration.ProcessParameterAttribute

상속: System.Attribute
파일 보기 프로젝트 열기: zyonee/opencbm 1 사용 예제들

공개 메소드들

메소드 설명
ProcessParameterAttribute ( string pv_strParameterName, string pv_strParameterAbbreviation, bool pv_blnParameterRequired, string pv_strValidationExpression, string pv_strParameterHelpResource ) : System

Attribute to describe how to process a property as a command line parameter.

Validate ( object pv_objInstance, PropertyInfo pv_objPropertyInfo ) : ParameterValidationError

메소드 상세

ProcessParameterAttribute() 공개 메소드

Attribute to describe how to process a property as a command line parameter.
public ProcessParameterAttribute ( string pv_strParameterName, string pv_strParameterAbbreviation, bool pv_blnParameterRequired, string pv_strValidationExpression, string pv_strParameterHelpResource ) : System
pv_strParameterName string Long name of the parameter. (Ex: --help)
pv_strParameterAbbreviation string Short name of the parameter. (Ex: -h)
pv_blnParameterRequired bool Is the parameter required?
pv_strValidationExpression string Regular expression to validate parameter.
pv_strParameterHelpResource string Resource ID to use to build help for this parameter.
리턴 System

Validate() 공개 정적인 메소드

public static Validate ( object pv_objInstance, PropertyInfo pv_objPropertyInfo ) : ParameterValidationError
pv_objInstance object
pv_objPropertyInfo System.Reflection.PropertyInfo
리턴 ParameterValidationError