KnownContactField.ConvertNameToType(String) Metodo

Definizione

Converte una stringa che rappresenta il nome di un campo nel tipo corrispondente.

Nota

NotoContactField può essere modificato o non disponibile per le versioni dopo Windows 8.1. Usare invece ContactAddress, ContactPhone, ContactConnectedServiceAccount o 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

Parametri

name
String

Platform::String

winrt::hstring

Nome del campo.

Restituisce

Tipo di campo.

Attributi

Requisiti Windows

Funzionalità dell'app
contactsSystem

Si applica a