Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class System.​Net.​SocketAddress

Assembly: System.Net.Primitives

Inheritance: object → SocketAddress

Stores serialized information from <see cref="T:System.Net.EndPoint" /> derived classes.

Properties

public AddressFamily
Family
Gets the <see cref="T:System.Net.Sockets.AddressFamily" /> enumerated value of the current <see cref="T:System.Net.SocketAddress" /> .
public byte
Item
public int
Size
Gets the underlying buffer size of the <see cref="T:System.Net.SocketAddress" /> .
public Memory`1
Buffer
Gets the underlying memory that can be passed to native OS calls.

Methods

public bool
Equals​(object comparand)
comparand The <see cref="T:System.Object" /> to compare with the current <see langword="Object" /> .
Returns <see langword="true" /> if the specified <see langword="Object" /> is equal to the current <see langword="Object" /> ; otherwise, <see langword="false" /> .
Determines whether the specified <see langword="Object" /> is equal to the current <see langword="Object" /> .
public bool
Equals​(SocketAddress comparand)
comparand The object to compare.
Returns <see langword="true" /> if the current object is equal to the <paramref name="comparand" /> parameter; otherwise, <see langword="false" /> .
Indicates whether the current object is equal to another object of the same type.
public int
GetHashCode​()
Returns A hash code for the current <see cref="T:System.Object" /> .
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public string
ToString​()
Returns A string that contains information about the <see cref="T:System.Net.SocketAddress" /> .
Returns information about the socket address.
protected void
Finalize​()
Inherited from object
public Type
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object