UdpReceiveResult UdpReceiveResult UdpReceiveResult UdpReceiveResult Struct

定義

呈現呼叫 ReceiveAsync() 方法的 UDP 接收結果資訊。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)
繼承
UdpReceiveResultUdpReceiveResultUdpReceiveResultUdpReceiveResult
實作

建構函式

UdpReceiveResult(Byte[], IPEndPoint) UdpReceiveResult(Byte[], IPEndPoint) UdpReceiveResult(Byte[], IPEndPoint) UdpReceiveResult(Byte[], IPEndPoint)

初始化 UdpReceiveResult 類別的新執行個體。Initializes a new instance of the UdpReceiveResult class.

屬性

Buffer Buffer Buffer Buffer

使用在 UDP 封包中收到的資料以取得緩衝區。Gets a buffer with the data received in the UDP packet.

RemoteEndPoint RemoteEndPoint RemoteEndPoint RemoteEndPoint

取得接收 UDP 封包的遠端來源端點。Gets the remote endpoint from which the UDP packet was received.

方法

Equals(UdpReceiveResult) Equals(UdpReceiveResult) Equals(UdpReceiveResult) Equals(UdpReceiveResult)

傳回值,這個值指出此執行個體是否與指定的物件相等。Returns a value that indicates whether this instance is equal to a specified object.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

傳回值,這個值指出此執行個體是否與指定的物件相等。Returns a value that indicates whether this instance is equal to a specified object.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

傳回這個執行個體的雜湊碼。Returns the hash code for this instance.

運算子

Equality(UdpReceiveResult, UdpReceiveResult) Equality(UdpReceiveResult, UdpReceiveResult) Equality(UdpReceiveResult, UdpReceiveResult) Equality(UdpReceiveResult, UdpReceiveResult)

測試兩個指定的 UdpReceiveResult 執行個體是否相等。Tests whether two specified UdpReceiveResult instances are equivalent.

Inequality(UdpReceiveResult, UdpReceiveResult) Inequality(UdpReceiveResult, UdpReceiveResult) Inequality(UdpReceiveResult, UdpReceiveResult) Inequality(UdpReceiveResult, UdpReceiveResult)

測試兩個指定的 UdpReceiveResult 執行個體是否不相等。Tests whether two specified UdpReceiveResult instances are not equal.

適用於