Socket.SupportsIPv4 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
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 通訊協定。