IniFile.DeleteKey Method

IniFileIO

IniFileDeleteKey Method

IniFileIO Documentation
Deletes the key with the name keyName from the specified sectionName.

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

public bool DeleteKey(
	string sectionName,
	string keyName
)
Public Function DeleteKey ( 
	sectionName As String,
	keyName As String
) As Boolean
public:
bool DeleteKey(
	String^ sectionName, 
	String^ keyName
)
member DeleteKey : 
        sectionName : string * 
        keyName : string -> bool 

Parameters

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

Return Value

Type: Boolean
Whether or not the keyName was deleted.
Remarks

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

Reference