C# Class PaytonByrd.ProcessConfiguration.ProcessParameterAttribute

Inheritance: System.Attribute
Afficher le fichier Open project: zyonee/opencbm Class Usage Examples

Méthodes publiques

Méthode Description
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

Method Details

ProcessParameterAttribute() public méthode

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.
Résultat System

Validate() public static méthode

public static Validate ( object pv_objInstance, PropertyInfo pv_objPropertyInfo ) : ParameterValidationError
pv_objInstance object
pv_objPropertyInfo System.Reflection.PropertyInfo
Résultat ParameterValidationError