IniFile.MakeSection Method

IniFileIO

IniFileMakeSection Method

IniFileIO Documentation
Creates a new unattached IniFileSection.

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

public static IniFileSection MakeSection(
	string name,
	string comments = "",
	int order = 2147483647,
	List<IniFileKey> keys = null
)
Public Shared Function MakeSection ( 
	name As String,
	Optional comments As String = "",
	Optional order As Integer = 2147483647,
	Optional keys As List(Of IniFileKey) = Nothing
) As IniFileSection
public:
static IniFileSection MakeSection(
	String^ name, 
	String^ comments = L"", 
	int order = 2147483647, 
	List<IniFileKey>^ keys = nullptr
)
static member MakeSection : 
        name : string * 
        ?comments : string * 
        ?order : int * 
        ?keys : List<IniFileKey> 
(* Defaults:
        let _comments = defaultArg comments ""
        let _order = defaultArg order 2147483647
        let _keys = defaultArg keys null
*)
-> IniFileSection 

Parameters

name
Type: SystemString
Name of the section.
comments (Optional)
Type: SystemString
Comments for the section.
order (Optional)
Type: SystemInt32
Sequential placement with respect to existing sections.
keys (Optional)
Type: System.Collections.GenericListIniFileKey
Keys for the section.

Return Value

Type: IniFileSection
New section with the specified properties assigned.
Remarks

See Also

Reference