GetPrivateProfileString() private method

private GetPrivateProfileString ( string section, string key, string def, StringBuilder retVal, int size, string filePath ) : int
section string
key string
def string
retVal StringBuilder
size int
filePath string
return int
コード例 #1
0
        public String ReadValue(String Section, String Key)
        {
            StringBuilder retVal = new StringBuilder((Int32)Byte.MaxValue);

            IniFile.GetPrivateProfileString(Section, Key, "", retVal, (Int32)Byte.MaxValue, this.path);
            return(retVal.ToString());
        }
コード例 #2
0
        public string IniReadValue(string Section, string Key)
        {
            StringBuilder stringBuilder = new StringBuilder(255);

            IniFile.GetPrivateProfileString(Section, Key, "", stringBuilder, 255, path);
            return(stringBuilder.ToString());
        }