Partager via


KnownContactField.ConvertNameToType(String) Méthode

Définition

Convertit une chaîne représentant le nom d’un champ en son type correspondant.

Notes

KnownContactField peut être modifié ou indisponible pour les versions après Windows 8.1. Utilisez plutôt ContactAddress, ContactPhone, ContactConnectedServiceAccount ou 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

Paramètres

name
String

Platform::String

winrt::hstring

Nom du champ.

Retours

Type de champ.

Attributs

Configuration requise pour Windows

Fonctionnalités de l’application
contactsSystem

S’applique à