Click or drag to resize
PFSSectionGetSection Method (String, Int32, Boolean)
Get the n'ths section instance with the specified name.

To get the first section of a certain name, use

section.GetSection("sectionName", 1, true);

Namespace: DHI.PFS
Assembly: DHI.PFS (in DHI.PFS.dll) Version: 16.0.0.0 (11.1.1.1111)
Syntax
public PFSSection GetSection(
	string sectionName,
	int sectionNumber,
	bool mandatory
)

Parameters

sectionName
Type: SystemString
Name of section to get
sectionNumber
Type: SystemInt32
Number of section with that name to get.
mandatory
Type: SystemBoolean
If set to true a PFSException will be thrown in case the section does not exist

Return Value

Type: PFSSection
PFSSection, null if not found.
See Also