SocketAddress.Family 属性

定义

获取当前 AddressFamilySocketAddress 枚举值。

public:
 property System::Net::Sockets::AddressFamily Family { System::Net::Sockets::AddressFamily get(); };
public System.Net.Sockets.AddressFamily Family { get; }
member this.Family : System.Net.Sockets.AddressFamily
Public ReadOnly Property Family As AddressFamily

属性值

AddressFamily 枚举值之一。

注解

此方法获取 AddressFamily 表示当前 SocketAddress的寻址方案的枚举值。 如果要查看 的相应字符串表示形式 AddressFamily,请使用 ToString 方法。

适用于

另请参阅