共用方式為


EndPoint.AddressFamily 屬性

定義

取得端點所屬的通訊協定家族 (Family)。

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

屬性值

其中一個 AddressFamily 值。

例外狀況

當屬性在子代類別中未覆寫時,會嘗試取得或設定該屬性。

備註

屬性 AddressFamily 會指定端點基礎網路協定所使用的尋址配置。

適用於