Public Overloads Shared Function GetPrivateProfileString( _ ByVal sectionName As String, _ ByVal settingName As String, _ ByVal defaultValue As String, _ ByVal returnedBuffer As StringBuilder, _ ByVal size As Integer, _ ByVal filePath As String _ ) As Integer
Dim sectionName As String Dim settingName As String Dim defaultValue As String Dim returnedBuffer As StringBuilder Dim size As Integer Dim filePath As String Dim value As Integer value = IniReaderWriter.GetPrivateProfileString(sectionName, settingName, defaultValue, returnedBuffer, size, filePath)
public static int GetPrivateProfileString( string sectionName, string settingName, string defaultValue, StringBuilder returnedBuffer, int size, string filePath )
public: static int GetPrivateProfileString( String^ sectionName, String^ settingName, String^ defaultValue, StringBuilder^ returnedBuffer, 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
- returnedBuffer
- StrinbBuilder 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