Click or drag to resize

SourceCallNumberProcessUnknownTag Method

Creates SourceCallNumberEx instead of this SourceCallNumber, copies all previously parsed data to the new context, then parses continue with the new context.

Namespace: Patagames.GedcomNetSdk.Primitives
Assembly: Patagames.Gedcom.Net.Sdk (in Patagames.Gedcom.Net.Sdk.dll) Version: 1.0.8
Syntax
protected override ProcessTagResult ProcessUnknownTag(
	int no,
	string tagPath,
	int level,
	string tag,
	string value,
	out Context context
)

Parameters

no  Int32
The number of the line in the GEDSOM transmission file.
tagPath  String
The parent tag of the tag being processed.
level  Int32
The nesting level of the processed tag.
tag  String
Tag to be processed.
value  String
The value contained under the tag being processed.
context  Context
Context for replacement. Must not be null if ReplaceContext is returned.

Return Value

ProcessTagResult
ReplaceContext if the tag was successfully processed. Error otherwise; the GEDCOM mechanism will throw an UnknownTagException in this case.
Remarks
When an unknown non-custom(beginning with an underscore) tag is encountered, this method checks whether the tag is PHRASE and, if so, creates an extended version of the class (SourceCallNumberEx), and then the parsing continues. Otherwise, an error will occur and the engine will throw an UnknownTagException exception.
See Also