Class GpxEmail
Represents an e-mail address by ID and domain, kept separate in GPX files in an attempt to defeat simple e-mail harvesting schemes.
Inherited Members
Namespace: NetTopologySuite.IO
Assembly: NetTopologySuite.IO.GPX.dll
Syntax
public sealed class GpxEmail : ICanWriteToXmlWriter
Remarks
In the official XSD schema for GPX 1.1, this corresponds to the simple type "emailType".
Constructors
| Improve this Doc View SourceGpxEmail(String, String)
Initializes a new instance of the GpxEmail class.
Declaration
public GpxEmail(string id, string domain)
Parameters
Type | Name | Description |
---|---|---|
String | id | The value for Id. |
String | domain | The value for Domain. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown when |
Properties
| Improve this Doc View SourceDomain
Gets the user ID fragment of the e-mail address. This is the part after the '@'.
Declaration
public string Domain { get; }
Property Value
Type | Description |
---|---|
String |
Remarks
In the official XSD schema for GPX 1.1, this corresponds to the "domain" attribute.
Id
Gets the user ID fragment of the e-mail address. This is the part before the '@'.
Declaration
public string Id { get; }
Property Value
Type | Description |
---|---|
String |
Remarks
In the official XSD schema for GPX 1.1, this corresponds to the "id" attribute.
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 |