Export (0) Print
Expand All

UdpReceiveResult Structure

.NET Framework 4.5

Presents UDP receive result information from a call to the ReceiveAsync method.

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

public struct UdpReceiveResult : IEquatable<UdpReceiveResult>

The UdpReceiveResult type exposes the following members.

Public methodUdpReceiveResultInitializes a new instance of the UdpReceiveResult class.

Public propertyBufferGets a buffer with the data received in the UDP packet.
Public propertyRemoteEndPointGets the remote endpoint from which the UDP packet was received.

Public methodEquals(Object)Returns a value that indicates whether this instance is equal to a specified object. (Overrides ValueType.Equals(Object).)
Public methodEquals(UdpReceiveResult)Returns a value that indicates whether this instance is equal to a specified object.
Public methodGetHashCodeReturns the hash code for this instance. (Overrides ValueType.GetHashCode().)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodToStringReturns the fully qualified type name of this instance. (Inherited from ValueType.)

Public operatorStatic memberEqualityTests whether two specified UdpReceiveResult instances are equivalent.
Public operatorStatic memberInequalityTests whether two specified UdpReceiveResult instances are not equal.

.NET Framework

Supported in: 4.6, 4.5

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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

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