Method GetSectionByIdentifier
GetSectionByIdentifier(string)
Retrieves a Section object from this instance based on the specified identifier.
public Section GetSectionByIdentifier(string sectionIdentifier)
Parameters
sectionIdentifier
stringThe unique identifier for the section to be retrieved. This identifier is used to locate the corresponding Section within the collection.
Returns
- Section
The Section that matches the given identifier. If no section is found with the specified identifier, this method throws a KeyNotFoundException exception.
Exceptions
- KeyNotFoundException
Thrown when no section with the specified identifier can be found in the collection.