KnownContactField.ConvertNameToType(String) 方法

定义

将表示字段名称的字符串转换为其相应的类型。

注意

KnownContactField 可能会在Windows 8.1后更改或不可用。 请改用 ContactAddressContactPhoneContactConnectedServiceAccountContactEmail

public:
 static ContactFieldType ConvertNameToType(Platform::String ^ name);
/// [Windows.Foundation.Metadata.Deprecated("IKnownContactFieldStatics may be altered or unavailable for releases after Windows 8.1. Instead, use ContactAddress, ContactPhone, ContactConnectedServiceAccount or ContactEmail.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
 static ContactFieldType ConvertNameToType(winrt::hstring const& name);
/// [Windows.Foundation.Metadata.Deprecated("IKnownContactFieldStatics may be altered or unavailable for releases after Windows 8.1. Instead, use ContactAddress, ContactPhone, ContactConnectedServiceAccount or ContactEmail.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
 static ContactFieldType ConvertNameToType(winrt::hstring const& name);
[Windows.Foundation.Metadata.Deprecated("IKnownContactFieldStatics may be altered or unavailable for releases after Windows 8.1. Instead, use ContactAddress, ContactPhone, ContactConnectedServiceAccount or ContactEmail.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))]
public static ContactFieldType ConvertNameToType(string name);
[Windows.Foundation.Metadata.Deprecated("IKnownContactFieldStatics may be altered or unavailable for releases after Windows 8.1. Instead, use ContactAddress, ContactPhone, ContactConnectedServiceAccount or ContactEmail.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
public static ContactFieldType ConvertNameToType(string name);
function convertNameToType(name)
Public Shared Function ConvertNameToType (name As String) As ContactFieldType

参数

name
String

Platform::String

winrt::hstring

字段的名称。

返回

字段的类型。

属性

Windows 要求

应用功能
contactsSystem

适用于