ClientLauncher.IniFiles.GetString C# (CSharp) Метод

GetString() публичный Метод

Gets the value of a setting in an ini file as a T:System.String.
The retreived value must be less than 32KB in length.
/// or are /// a null reference (Nothing in VB) ///
public GetString ( string sectionName, string keyName, string defaultValue ) : string
sectionName string The name of the section to read from.
keyName string The name of the key in section to read.
defaultValue string The default value to return if the key /// cannot be found.
Результат string
        public string GetString(string sectionName,
                                string keyName,
                                string defaultValue)
        {
            if (sectionName == null)
                throw new ArgumentNullException("sectionName");

            if (keyName == null)
                throw new ArgumentNullException("keyName");

            StringBuilder retval = new StringBuilder(IniFiles.MaxSectionSize);

            NativeMethods.GetPrivateProfileString(sectionName,
                                                  keyName,
                                                  defaultValue,
                                                  retval,
                                                  IniFiles.MaxSectionSize,
                                                  m_path);

            return retval.ToString();
        }