Show / Hide Table of Contents

    Class GpxPerson

    Represents a person or organization.

    Inheritance
    Object
    GpxPerson
    Inherited Members
    Object.Equals(Object, Object)
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    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 Source

    GpxPerson()

    Initializes a new instance of the GpxPerson class.

    Declaration
    public GpxPerson()
    | Improve this Doc View Source

    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 email

    The value for Email.

    GpxWebLink link

    The value for Link.

    Properties

    | Improve this Doc View Source

    Email

    Gets 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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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 Source

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj
    Returns
    Type Description
    Boolean
    Overrides
    Object.Equals(Object)
    | Improve this Doc View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32
    Overrides
    Object.GetHashCode()
    | Improve this Doc View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Overrides
    Object.ToString()
    | Improve this Doc View Source

    WithEmail(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 email

    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 email.

    | Improve this Doc View Source

    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 link.

    | Improve this Doc View Source

    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 name.

    • Improve this Doc
    • View Source
    Back to top Generated by DocFX