通过


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

PreferredContactMethod Class

public final class PreferredContactMethod
extends ExpandableStringEnum<PreferredContactMethod>

Preferred contact method.

Field Summary

Modifier and Type Field and Description
static final PreferredContactMethod EMAIL

Static value email for PreferredContactMethod.

static final PreferredContactMethod PHONE

Static value phone for PreferredContactMethod.

Constructor Summary

Constructor Description
PreferredContactMethod()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of PreferredContactMethod value.

Method Summary

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

Creates or finds a PreferredContactMethod from its string representation.

static Collection<PreferredContactMethod> values()

Gets known PreferredContactMethod values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

EMAIL

public static final PreferredContactMethod EMAIL

Static value email for PreferredContactMethod.

PHONE

public static final PreferredContactMethod PHONE

Static value phone for PreferredContactMethod.

Constructor Details

PreferredContactMethod

@Deprecated
public PreferredContactMethod()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of PreferredContactMethod value.

Method Details

fromString

public static PreferredContactMethod fromString(String name)

Creates or finds a PreferredContactMethod from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding PreferredContactMethod.

values

public static Collection<PreferredContactMethod> values()

Gets known PreferredContactMethod values.

Returns:

known PreferredContactMethod values.

Applies to