Method TryGetSection
- Namespace
- PaintDotNet.FileTypes
- Assembly
- PaintDotNet.FileTypes.dll
TryGetSection(FileTypeMetadataSectionKind, out IReadOnlyFileTypeMetadataSection?)
Gets access to a read-only metadata section by its FileTypeMetadataSectionKind.
bool TryGetSection(FileTypeMetadataSectionKind sectionKind, out IReadOnlyFileTypeMetadataSection? section)
Parameters
sectionKindFileTypeMetadataSectionKindThe kind of metadata section to get.
sectionIReadOnlyFileTypeMetadataSectionWhen this method returns, contains the metadata section if found; otherwise,
null.
Returns
- bool
trueif a matching section was found; otherwise,false.