IPPacketInformation.Address 属性

定义

public:
 property System::Net::IPAddress ^ Address { System::Net::IPAddress ^ get(); };
public System.Net.IPAddress Address { get; }
member this.Address : System.Net.IPAddress
Public ReadOnly Property Address As IPAddress

属性值

IPAddress,指示调用 ReceiveMessageFrom(Byte[], Int32, Int32, SocketFlags, EndPoint, IPPacketInformation) 方法或 EndReceiveMessageFrom(IAsyncResult, SocketFlags, EndPoint, IPPacketInformation) 方法后收到的数据包的来源信息。 如果从单播地址发送数据包,Address 属性将返回发送方的 IPAddress;对于多路广播或广播数据包,Address 属性将返回多路广播或广播 IPAddress

适用于