Socket.OSSupportsIPv4 Socket.OSSupportsIPv4 Socket.OSSupportsIPv4 Socket.OSSupportsIPv4 Property

定义

指示基础操作系统和网络适配器是否支持 Internet 协议第 4 版 (IPv4)。Indicates whether the underlying operating system and network adaptors support Internet Protocol version 4 (IPv4).

public:
 static property bool OSSupportsIPv4 { bool get(); };
public static bool OSSupportsIPv4 { get; }
member this.OSSupportsIPv4 : bool
Public Shared ReadOnly Property OSSupportsIPv4 As Boolean

属性值

如果操作系统和网络适配器支持 IPv4 协议,则为 true;否则为 falsetrue if the operating system and network adaptors support the IPv4 protocol; otherwise, false.

注解

操作系统可能会支持 IPv4 和 IPv6 协议。The operating system may support both IPv4 and IPv6 protocols.

适用于

另请参阅