Class GpxPerson
Represents a person or organization.
Inherited Members
Namespace: NetTopologySuite.IO
Assembly: NetTopologySuite.IO.GPX.dll
Syntax
public sealed class GpxPerson : ICanWriteToXmlWriter
Remarks
In the official XSD schema for GPX 1.1, this corresponds to the complex type "personType".
Constructors
| Improve this Doc View SourceGpxPerson()
Initializes a new instance of the GpxPerson class.
Declaration
public GpxPerson()
GpxPerson(String, GpxEmail, GpxWebLink)
Initializes a new instance of the GpxPerson class.
Declaration
public GpxPerson(string name, GpxEmail email, GpxWebLink link)
Parameters
Type | Name | Description |
---|---|---|
String | name | The value for Name. |
GpxEmail | The value for Email. |
|
GpxWebLink | link | The value for Link. |
Properties
| Improve this Doc View SourceGets the e-mail of this person or organization.
Declaration
public GpxEmail Email { get; }
Property Value
Type | Description |
---|---|
GpxEmail |
Remarks
In the official XSD schema for GPX 1.1, this corresponds to the "email" element.
Link
Gets a link to external information about this person or organization.
Declaration
public GpxWebLink Link { get; }
Property Value
Type | Description |
---|---|
GpxWebLink |
Remarks
In the official XSD schema for GPX 1.1, this corresponds to the "link" element.
Name
Gets the name of this person or organization.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
String |
Remarks
In the official XSD schema for GPX 1.1, this corresponds to the "name" element.
Methods
| Improve this Doc View SourceEquals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj |
Returns
Type | Description |
---|---|
Boolean |
Overrides
| Improve this Doc View SourceGetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
Overrides
| Improve this Doc View SourceToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |
Overrides
| Improve this Doc View SourceWithEmail(GpxEmail)
Builds a new instance of GpxPerson as a copy of this instance, but with Email replaced by the given value.
Declaration
public GpxPerson WithEmail(GpxEmail email)
Parameters
Type | Name | Description |
---|---|---|
GpxEmail | The new value for Email. |
Returns
Type | Description |
---|---|
GpxPerson | A new GpxPerson instance that's a copy of the current instance, but
with its Email value set to |
WithLink(GpxWebLink)
Builds a new instance of GpxPerson as a copy of this instance, but with Link replaced by the given value.
Declaration
public GpxPerson WithLink(GpxWebLink link)
Parameters
Type | Name | Description |
---|---|---|
GpxWebLink | link | The new value for Link. |
Returns
Type | Description |
---|---|
GpxPerson | A new GpxPerson instance that's a copy of the current instance, but
with its Link value set to |
WithName(String)
Builds a new instance of GpxPerson as a copy of this instance, but with Name replaced by the given value.
Declaration
public GpxPerson WithName(string name)
Parameters
Type | Name | Description |
---|---|---|
String | name | The new value for Name. |
Returns
Type | Description |
---|---|
GpxPerson | A new GpxPerson instance that's a copy of the current instance, but
with its Name value set to |