共用方式為


Socket.SupportsIPv4 屬性

定義

警告

SupportsIPv4 is obsoleted for this type, please use OSSupportsIPv4 instead. https://go.microsoft.com/fwlink/?linkid=14202

警告

SupportsIPv4 has been deprecated. Use OSSupportsIPv4 instead.

警告

SupportsIPv4 is obsoleted for this type, please use OSSupportsIPv4 instead. http://go.microsoft.com/fwlink/?linkid=14202

取得值,指出 IPv4 支援是否可用並在目前的主機上啟用。

public:
 static property bool SupportsIPv4 { bool get(); };
[System.Obsolete("SupportsIPv4 is obsoleted for this type, please use OSSupportsIPv4 instead. https://go.microsoft.com/fwlink/?linkid=14202")]
public static bool SupportsIPv4 { get; }
[System.Obsolete("SupportsIPv4 has been deprecated. Use OSSupportsIPv4 instead.")]
public static bool SupportsIPv4 { get; }
[System.Obsolete("SupportsIPv4 is obsoleted for this type, please use OSSupportsIPv4 instead. http://go.microsoft.com/fwlink/?linkid=14202")]
public static bool SupportsIPv4 { get; }
public static bool SupportsIPv4 { get; }
[<System.Obsolete("SupportsIPv4 is obsoleted for this type, please use OSSupportsIPv4 instead. https://go.microsoft.com/fwlink/?linkid=14202")>]
static member SupportsIPv4 : bool
[<System.Obsolete("SupportsIPv4 has been deprecated. Use OSSupportsIPv4 instead.")>]
static member SupportsIPv4 : bool
[<System.Obsolete("SupportsIPv4 is obsoleted for this type, please use OSSupportsIPv4 instead. http://go.microsoft.com/fwlink/?linkid=14202")>]
static member SupportsIPv4 : bool
static member SupportsIPv4 : bool
Public Shared ReadOnly Property SupportsIPv4 As Boolean

屬性值

如果目前的主機支援 IPv4 通訊協定,則為 true,否則為 false

屬性

備註

操作系統可能同時支援 IPv4 和 IPv6 通訊協定。

適用於

另請參閱