System.Net.EndPoint Class

Assembly: System.dll
Namespace: System.Net
Summary
Identifies a network address. This is an abstract class.
C# Syntax:
[Serializable]
public abstract class EndPoint
Remarks
The EndPoint class provides an abstract base class that represents a network resource or service. Descendant classes combine network connection information to form a connection point to a service.
See also:
System.Net Namespace | IPEndPoint

System.Net.EndPoint Member List:

Public Properties
AddressFamily Read-only

Gets the address family to which the endpoint belongs.
Public Methods
Create Creates an EndPoint instance from a SocketAddress instance.
Equals
(inherited from System.Object)
See base class member description: System.Object.Equals

Derived from System.Object, the primary base class for all objects.
GetHashCode
(inherited from System.Object)
See base class member description: System.Object.GetHashCode

Derived from System.Object, the primary base class for all objects.
GetType
(inherited from System.Object)
See base class member description: System.Object.GetType

Derived from System.Object, the primary base class for all objects.
Serialize Serializes endpoint information into a SocketAddress instance.
ToString
(inherited from System.Object)
See base class member description: System.Object.ToString

Derived from System.Object, the primary base class for all objects.
Protected Constructors
ctor #1 Default constructor. This constructor is called by derived class constructors to initialize state in this type.
Protected Methods
Finalize
(inherited from System.Object)
See base class member description: System.Object.Finalize

Derived from System.Object, the primary base class for all objects.
MemberwiseClone
(inherited from System.Object)
See base class member description: System.Object.MemberwiseClone

Derived from System.Object, the primary base class for all objects.

Hierarchy:


System.Net.EndPoint Member Details

ctor #1
Summary:
Default constructor. This constructor is called by derived class constructors to initialize state in this type.
C# Syntax:
protected EndPoint();

Return to top


Property: AddressFamily (read-only)
Summary
Gets the address family to which the endpoint belongs.
C# Syntax:
public virtual AddressFamily AddressFamily {get;}
Exceptions
Exception Type Condition
NotSupportedException Any attempt is made to get or set the property when the property is not overridden in a descendant class.
Remarks
The EndPoint.AddressFamily property specifies the addressing scheme used by the endpoint's underlying network protocol.

Return to top


Method: Create(
   SocketAddress socketAddress
)
Summary
Creates an EndPoint instance from a SocketAddress instance.
C# Syntax:
public virtual EndPoint Create(
   SocketAddress socketAddress
);
Parameters:

socketAddress

The socket address that serves as the endpoint for a connection.

Return Value:
A new EndPoint instance initialized from the specified SocketAddress instance.
Exceptions
Exception Type Condition
NotSupportedException Any attempt is made to access the method when the method is not overridden in a descendant class.

Return to top


Method: Equals(
   object obj
)
Inherited
See base class member description: System.Object.Equals
C# Syntax:
public virtual bool Equals(
   object obj
);

For more information on members inherited from System.Object click on the link above.

Return to top


Method: Finalize()
Inherited
See base class member description: System.Object.Finalize
C# Syntax:
~EndPoint();

For more information on members inherited from System.Object click on the link above.

Return to top


Method: GetHashCode()
Inherited
See base class member description: System.Object.GetHashCode
C# Syntax:
public virtual int GetHashCode();

For more information on members inherited from System.Object click on the link above.

Return to top


Method: GetType()
Inherited
See base class member description: System.Object.GetType
C# Syntax:
public Type GetType();

For more information on members inherited from System.Object click on the link above.

Return to top


Method: MemberwiseClone()
Inherited
See base class member description: System.Object.MemberwiseClone
C# Syntax:
protected object MemberwiseClone();

For more information on members inherited from System.Object click on the link above.

Return to top


Method: Serialize()
Summary
Serializes endpoint information into a SocketAddress instance.
C# Syntax:
public virtual SocketAddress Serialize();
Return Value:
A SocketAddress instance containing the endpoint information.
Exceptions
Exception Type Condition
NotSupportedException Any attempt is made to access the method when the method is not overridden in a descendant class.

Return to top


Method: ToString()
Inherited
See base class member description: System.Object.ToString
C# Syntax:
public virtual string ToString();

For more information on members inherited from System.Object click on the link above.

Return to top


Top of page

Copyright (c) 2002 Microsoft Corporation. All rights reserved.