你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

PreferredIpVersion Class

public final class PreferredIpVersion
extends ExpandableStringEnum<PreferredIpVersion>

The preferred IP version to use in test evaluation. The connection monitor may choose to use a different version depending on other parameters.

Field Summary

Modifier and Type Field and Description
static final PreferredIpVersion IPV4

Static value IPv4 for PreferredIpVersion.

static final PreferredIpVersion IPV6

Static value IPv6 for PreferredIpVersion.

Constructor Summary

Constructor Description
PreferredIpVersion()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of PreferredIpVersion value.

Method Summary

Modifier and Type Method and Description
static PreferredIpVersion fromString(String name)

Creates or finds a PreferredIpVersion from its string representation.

static Collection<PreferredIpVersion> values()

Gets known PreferredIpVersion values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

IPV4

public static final PreferredIpVersion IPV4

Static value IPv4 for PreferredIpVersion.

IPV6

public static final PreferredIpVersion IPV6

Static value IPv6 for PreferredIpVersion.

Constructor Details

PreferredIpVersion

@Deprecated
public PreferredIpVersion()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of PreferredIpVersion value.

Method Details

fromString

public static PreferredIpVersion fromString(String name)

Creates or finds a PreferredIpVersion from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding PreferredIpVersion.

values

public static Collection<PreferredIpVersion> values()

Gets known PreferredIpVersion values.

Returns:

known PreferredIpVersion values.

Applies to