Public Overloads Shared Function GetPrivateProfileString( _ ByVal sectionName As String, _ ByVal settingName As String, _ ByVal defaultValue As String, _ ByRef returnedString As String, _ ByVal size As Integer, _ ByVal filePath As String _ ) As Integer
Dim sectionName As String Dim settingName As String Dim defaultValue As String Dim returnedString As String Dim size As Integer Dim filePath As String Dim value As Integer value = IniReaderWriter.GetPrivateProfileString(sectionName, settingName, defaultValue, returnedString, size, filePath)
public static int GetPrivateProfileString( string sectionName, string settingName, string defaultValue, out string returnedString, int size, string filePath )
public: static int GetPrivateProfileString( String^ sectionName, String^ settingName, String^ defaultValue, [Out] String^ returnedString, int size, String^ filePath )
Parameters
- sectionName
- The INI Section Name. Use GLOBAL for the global section.
- settingName
- The INI Setting Name
- defaultValue
- The default value if there is no value
- returnedString
- Output of the string
- size
- The number of buffer characters (not used but here for backward compatibility)
- filePath
- The path to the INI file
Return Value
Number of characters returned