Table of Contents

Method RemoveSection

Namespace
LMKit.Data
Assembly
LM-Kit.NET.dll

RemoveSection(Section)

Removes the specified Section from this DataSource.

public bool RemoveSection(Section section)

Parameters

section Section

The Section instance to remove. This parameter must not be null.

Returns

bool

true if the section was successfully removed; otherwise, false.

Exceptions

ArgumentNullException

Thrown if section is null.

RemoveSection(string)

Removes the section identified by the specified identifier from this DataSource.

public bool RemoveSection(string sectionIdentifier)

Parameters

sectionIdentifier string

The unique identifier of the section to remove. This parameter must not be null, empty, or consist solely of white-space characters.

Returns

bool

true if a section with the specified identifier was found and removed; otherwise, false.

Exceptions

ArgumentNullException

Thrown if sectionIdentifier is null, empty, or white-space.