docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method TryParse

    TryParse(string, ushort, out NetworkEndPoint, NetworkFamily)

    Try to parse the given address and port into a new NetworkEndPoint.

    Declaration
    public static bool TryParse(string address, ushort port, out NetworkEndPoint endpoint, NetworkFamily family = NetworkFamily.Ipv4)
    Parameters
    Type Name Description
    string address

    String representation of the address.

    ushort port

    Port number.

    NetworkEndPoint endpoint

    Return value for the parsed endpoint.

    NetworkFamily family

    Address family of 'address'.

    Returns
    Type Description
    bool

    Whether the endpoint was successfully parsed or not.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)