示例#1
0
        /// <summary> Returns the value of the named parameter, as a string. The value can
        /// come from teh defaults, if there are.
        ///
        /// </summary>
        /// <param name="pname">The parameter name.
        ///
        /// </param>
        /// <returns> the value of the parameter as a string, or null if there is no
        /// parameter with the name 'pname'.
        ///
        /// </returns>
        public virtual System.String getParameter(System.String pname)
        {
            System.String pval;

            pval = ((System.String) this[(System.String)pname]);
            //UPGRADE_ISSUE: Field 'java.util.Properties.defaults' was not converted. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1000_javautilPropertiesdefaults_f'"
            if (pval == null && defaults != null)
            {
                // if parameter is not there
                // Look in defaults
                //UPGRADE_ISSUE: Field 'java.util.Properties.defaults' was not converted. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1000_javautilPropertiesdefaults_f'"
                pval = defaults.Get(pname);
            }
            return(pval);
        }