System.Net.EndPoint Class

public abstract class EndPoint

Base Types

Object
  EndPoint

Assembly

System

Library

Networking

Summary

This is the base class used to derive classes that represent network addresses.

Description

[Note: The EndPoint class provides an abstract representation of the address of a network resource or service. ]

See Also

System.Net Namespace

Members

EndPoint Constructors

EndPoint Constructor

EndPoint Methods

EndPoint.Create Method

EndPoint Properties

EndPoint.AddressFamily Property


EndPoint Constructor

protected EndPoint();

Summary

Constructs a new instance of the EndPoint class.

See Also

System.Net.EndPoint Class, System.Net Namespace

EndPoint.Create Method

public virtual EndPoint Create(SocketAddress socketAddress);

Summary

Returns a new EndPoint instance containing the address information from the specified SocketAddress instance.

Parameters

socketAddress
A SocketAddress instance that provides the address information for the new EndPoint instance.

Return Value

A new EndPoint instance containing the address information from the specified SocketAddress instance.

Exceptions

Exception TypeCondition
NotSupportedExceptionThis method is required to be overridden in types derived from EndPoint .

Description

[Behaviors: As described above.]

[Default: The default implementation throws NotSupportedException. ]

[Overrides: Override this method to return a EndPoint instance that contains the address information from the specified SocketAddress.]

[Usage: Use this method to obtain a EndPoint instance that represents the same network resource or service as the specified SocketAddress. ]

See Also

System.Net.EndPoint Class, System.Net Namespace

EndPoint.AddressFamily Property

public virtual AddressFamily AddressFamily { get; }

Summary

Gets the address family to which the endpoint belongs.

Property Value

One of the values defined in AddressFamily .

Exceptions

Exception TypeCondition
NotSupportedExceptionThis property is required to be overridden in types derived from EndPoint .

Description

[Behaviors: This property is read-only.

The AddressFamily value returned by this property specifies the addressing scheme used by the network protocol of the current instance.

]

[Default: The default implementation throws NotSupportedException. ]

[Overrides: Override this property to return the AddressFamily of the current instance.]

[Usage: Use this property to obtain the AddressFamily information of the current instance. ]

See Also

System.Net.EndPoint Class, System.Net Namespace