Freigeben über


KnownContactField.ConvertNameToType(String) Methode

Definition

Konvertiert eine Zeichenfolge, die den Namen eines Felds in den entsprechenden Typ darstellt.

Hinweis

KnownContactField kann für Releases nach Windows 8.1 geändert oder nicht mehr verfügbar sein. Verwenden Sie stattdessen ContactAddress, ContactPhone, ContactConnectedServiceAccount oder ContactEmail.

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

Parameter

name
String

Platform::String

winrt::hstring

Der Name des Felds.

Gibt zurück

Der Feldtyp.

Attribute

Windows-Anforderungen

App-Funktionen
contactsSystem

Gilt für: