Share via


ContactInstantMessageField Classe

Définition

Définit un champ qui est une adresse de messagerie instantanée.

public ref class ContactInstantMessageField sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Contacts.IContactInstantMessageFieldFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class ContactInstantMessageField final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Contacts.IContactInstantMessageFieldFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class ContactInstantMessageField final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Contacts.IContactInstantMessageFieldFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class ContactInstantMessageField
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Contacts.IContactInstantMessageFieldFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class ContactInstantMessageField
function ContactInstantMessageField(userName, category, service, displayText, verb)
Public NotInheritable Class ContactInstantMessageField
Héritage
Object Platform::Object IInspectable ContactInstantMessageField
Attributs
Implémente

Configuration requise pour Windows

Famille d’appareils
Windows 10 (introduit dans 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduit dans v1.0)
Fonctionnalités de l’application
contactsSystem

Remarques

Votre application reçoit une collection d’objets ContactInstantMessageField lorsqu’un fournisseur de contacts retourne les informations de contact demandées. Vous pouvez accéder à ces objets via la propriété ContactInformation.InstantMessages .

Constructeurs

ContactInstantMessageField(String)

Crée un objet ContactInstantMessageField.

Notes

IContactInstantMessageFieldFactory peut être modifié ou indisponible pour les versions après Windows 8.1. Utilisez plutôt ContactConnectedServiceAccount.

ContactInstantMessageField(String, ContactFieldCategory)

Crée un objet ContactInstantMessageField.

Notes

IContactInstantMessageFieldFactory peut être modifié ou indisponible pour les versions après Windows 8.1. Utilisez plutôt ContactConnectedServiceAccount.

ContactInstantMessageField(String, ContactFieldCategory, String, String, Uri)

Crée un objet ContactInstantMessageField.

Notes

IContactInstantMessageFieldFactory peut être modifié ou indisponible pour les versions après Windows 8.1. Utilisez plutôt ContactConnectedServiceAccount.

Propriétés

Category

Obtient la catégorie des données de contact.

Notes

IContactField peut être modifié ou indisponible pour les versions après Windows 8.1. Utilisez plutôt ContactAddress, ContactPhone, ContactSignificantOther, Contact, ContactEmail, ContactConnectedServiceAccount, ContactWebsite, ContactJobInfo ou ContactDate.

DisplayText

Obtient le texte d’affichage de l’URI (Uniform Resource Identifier) qui démarre un message instantané.

Notes

ContactInstantMessageField peut être modifié ou indisponible pour les versions après Windows 8.1. Utilisez plutôt ContactConnectedServiceAccount.

LaunchUri

Obtient l’URI (Uniform Resource Identifier) qui peut démarrer un message instantané.

Notes

ContactInstantMessageField peut être modifié ou indisponible pour les versions après Windows 8.1. Utilisez plutôt ContactConnectedServiceAccount.

Name

Obtient le nom du champ.

Notes

IContactField peut être modifié ou indisponible pour les versions après Windows 8.1. Utilisez plutôt ContactAddress, ContactPhone, ContactSignificantOther, Contact, ContactEmail, ContactConnectedServiceAccount, ContactWebsite, ContactJobInfo ou ContactDate.

Service

Obtient le nom du service utilisé pour l’envoi de messages instantanés.

Notes

ContactInstantMessageField peut être modifié ou indisponible pour les versions après Windows 8.1. Utilisez plutôt ContactConnectedServiceAccount.

Type

Obtient le type de champ contact pour les données.

Notes

IContactField peut être modifié ou indisponible pour les versions après Windows 8.1. Utilisez plutôt ContactAddress, ContactPhone, ContactSignificantOther, Contact, ContactEmail, ContactConnectedServiceAccount, ContactWebsite, ContactJobInfo ou ContactDate.

UserName

Obtient le nom de l'utilisateur.

Notes

ContactInstantMessageField peut être modifié ou indisponible pour les versions après Windows 8.1. Utilisez plutôt ContactConnectedServiceAccount.

Value

Obtient la valeur des données de contact.

Notes

IContactField peut être modifié ou indisponible pour les versions après Windows 8.1. Utilisez plutôt ContactAddress, ContactPhone, ContactSignificantOther, Contact, ContactEmail, ContactConnectedServiceAccount, ContactWebsite, ContactJobInfo ou ContactDate.

S’applique à