UdpReceiveResult 结构

定义

呈现 UDP 从对 ReceiveAsync() 方法的调用接收结果信息。Presents UDP receive result information from a call to the ReceiveAsync() method.

public value class UdpReceiveResult : IEquatable<System::Net::Sockets::UdpReceiveResult>
public struct UdpReceiveResult : IEquatable<System.Net.Sockets.UdpReceiveResult>
type UdpReceiveResult = struct
Public Structure UdpReceiveResult
Implements IEquatable(Of UdpReceiveResult)
继承
UdpReceiveResult
实现

构造函数

UdpReceiveResult(Byte[], IPEndPoint)

初始化 UdpReceiveResult 类的新实例。Initializes a new instance of the UdpReceiveResult class.

属性

Buffer

获取包含 UDP 数据包中所接收数据的缓冲区。Gets a buffer with the data received in the UDP packet.

RemoteEndPoint

获取通过其接收 UDP 数据包的远程终结点。Gets the remote endpoint from which the UDP packet was received.

方法

Equals(Object)

返回一个值,该值指示此实例是否与指定的对象相等。Returns a value that indicates whether this instance is equal to a specified object.

Equals(UdpReceiveResult)

返回一个值,该值指示此实例是否与指定的对象相等。Returns a value that indicates whether this instance is equal to a specified object.

GetHashCode()

返回此实例的哈希代码。Returns the hash code for this instance.

运算符

Equality(UdpReceiveResult, UdpReceiveResult)

测试两个指定的 UdpReceiveResult 实例是否相等。Tests whether two specified UdpReceiveResult instances are equivalent.

Inequality(UdpReceiveResult, UdpReceiveResult)

测试两个指定的 UdpReceiveResult 实例是否不相等。Tests whether two specified UdpReceiveResult instances are not equal.

适用于