Export (0) Print
Expand All

IPEndPointCollection Class

Represents a collection used to store network endpoints as IPEndPoint objects.

Namespace:  System.Net
Assembly:  System.Net (in System.Net.dll)

'Declaration
<SerializableAttribute> _
Public Class IPEndPointCollection _
	Inherits Collection(Of IPEndPoint)
'Usage
Dim instance As IPEndPointCollection

The IPEndPointCollection class is derived from the System.Collections.ObjectModel.Collection(Of T) class.

The IPEndPoint class contains the host and local or remote port information needed by an application to connect to a service on a host. By combining the host's IP address and port number of a service, the IPEndPoint class forms a connection point to a service.

The IPEndPointCollection class is used by classes in the System.Net.PeerToPeer namespace.

Public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

A IPEndPointCollection can support multiple readers concurrently, as long as the collection is not modified. Even so, enumerating through a collection is intrinsically not a thread-safe procedure. To guarantee thread safety during enumeration, you can lock the collection during the entire enumeration. To allow the collection to be accessed by multiple threads for reading and writing, you must implement your own synchronization.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5

Community Additions

ADD
Show:
© 2014 Microsoft