IniFile.GetKeyOrder Method

IniFileIO

IniFileGetKeyOrder Method

IniFileIO Documentation
Gets the order of keyName in the specified sectionName.

Namespace:  IniFileIO
Assembly:  IniFileIO (in IniFileIO.dll) Version: 1.4.0.6028 (1.4.0.06028)
Syntax

public int GetKeyOrder(
	string sectionName,
	string keyName
)
Public Function GetKeyOrder ( 
	sectionName As String,
	keyName As String
) As Integer
public:
int GetKeyOrder(
	String^ sectionName, 
	String^ keyName
)
member GetKeyOrder : 
        sectionName : string * 
        keyName : string -> int 

Parameters

sectionName
Type: SystemString
Parent section to search.
keyName
Type: SystemString
Name of the target key.

Return Value

Type: Int32
Order of the first occurance of the keyNames within sectionName.
Remarks

In the event of multiple keyNames within sectionName, only the order of the first occurrance is returned.
See Also

Reference