Click or drag to resize

Address Class

Applicable for: 5.5.1

Extends the base AddressStructure class with properties specific to the applicable GEDCOM standards.
Inheritance Hierarchy

Namespace: Patagames.GedcomNetSdk.Structures.Ver551
Assembly: Patagames.Gedcom.Net.Sdk (in Patagames.Gedcom.Net.Sdk.dll) Version: 1.0.8
Syntax
public class Address : AddressStructure

The Address type exposes the following members.

Constructors
 NameDescription
Public methodAddressInitializes a new instance of the Address class
Top
Properties
 NameDescription
Public propertyAddr1 Gets or sets the first line of the address used for indexing.
(Inherited from AddressStructure)
Public propertyAddr2 Gets or sets the second line of the address used for indexing.
(Inherited from AddressStructure)
Public propertyAddr3 Gets or sets the third line of the address used for indexing.
Public propertyAddressLine Gets or sets a string value typically used to define a mailing address of an IndividualRecord. When it is used subordinate to an EventDetailStructure it is the address of the place where the event took place. The address lines usually contain the addressee’s name and other street and city information so that it forms an address that meets mailing requirements.
Public propertyCity Gets or sets the name of the city used in the address. Isolated for sorting or indexing.
(Inherited from AddressStructure)
Public propertyCountry Gets or sets the name of the country that pertains to the associated address. Isolated by some systems for sorting or indexing.Used in most cases to facilitate automatic sorting of mail.
(Inherited from AddressStructure)
Public propertyCustomTags Gets the collection of сгыещь tags encountered in this context.
(Inherited from Context)
Public propertyEmails Gets or sets a list of electronic address that can be used for contact such as an email address.
Public propertyFaxes Gets or sets a list of FAX telephone number appropriate for sending data facsimiles.
Public propertyPhones Gets or sets a list of phone number.
Public propertyPost Gets or sets the ZIP or postal code used by the various localities in handling of mail. Isolated for sorting or indexing.
(Inherited from AddressStructure)
Public propertyState Gets or sets the name of the state used in the address. Isolated for sorting or indexing.
(Inherited from AddressStructure)
Public propertyUnknownTags Gets the collection of unknown tags encountered in this context.
(Inherited from Context)
Public propertyWebSites Gets or sets a list of the world wide web page address.
Top
Methods
 NameDescription
Protected methodContextClosed Called when the context is closed. The default implementation does nothing.
(Inherited from Context)
Protected methodContextOpened Called when a context is opened. The default implementation does nothing.
(Inherited from Context)
Public methodDeserialize Read data from the parser and deserialize it into the Gedcom.Net SDK class library.
(Inherited from Context)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodGetValueT Hets the value and main tags of the specified propName.
(Inherited from Context)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Protected methodPreporcessTag Called before tag processing begins. The default implementation does nothing.
(Inherited from Context)
Protected methodProcessCustomTag Add the custom tag into the CustomTags collection.
(Inherited from Context)
Protected methodProcessUnknownTag When overridden, tries to process a tag that cannot be processed by the GEDCOM mechanism, because the tag is unknown or encountered in an unexpected context.
(Inherited from Context)
Public methodSerialize Seserialize the Gedcom.Net SDK class library and write data to the composer.
(Inherited from Context)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Remarks
The AddressLine value should not be used; it is available for backward compatibility with older versions of GEDCOM only.For forward compatibility, GEDCOM writers should be using subrecords such as State and Country to provide structured addresses. Applications should not use the AddressLine value in lieu of a structured address.

GEDCOM 5.5 specifies the AddressLine as optional. Thus, GEDCOM 5.5 allows the Phones to appear without an ADDR tag. FamilySearch apparently considered that a mistake, so they changed this in GEDCOM 5.5.1. The GEDCOM 5.5.1 specifies the AddressLine record as required. The Phones, Emails, Faxes, and WebSites may only appear when there is an ADDR record. So the AddressLine cannot be null.

See Also