PaytonByrd.ProcessConfiguration.ProcessParameterAttribute.ProcessParameterAttribute C# (CSharp) Method

ProcessParameterAttribute() public method

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.
return System
        public ProcessParameterAttribute(
            string pv_strParameterName,
            string pv_strParameterAbbreviation,
            bool pv_blnParameterRequired,
            string pv_strValidationExpression,
            string pv_strParameterHelpResource)
        {
            PaytonByrd.GenericHelpers.ArgumentAssert.IsStringNotNullNorEmpty(pv_strParameterName, "pv_strParameterName");

            m_strParameterName = pv_strParameterName;
            m_strParameterAbbreviation = pv_strParameterAbbreviation;
            m_blnParameterRequired = pv_blnParameterRequired;
            m_strValidationExpression = pv_strValidationExpression;
            m_strParameterHelpResource = pv_strParameterHelpResource;
        }
ProcessParameterAttribute