Share via


Contact Constructors

Definition

Overloads

Contact()

Initializes a new instance of the Contact class.

Contact(String, String, String, String, String, String, IEnumerable<ContactPhone>, IEnumerable<ContactEmail>, String)

Initializes a new instance of the Contact class with the given data.

Contact()

Source:
Contact.shared.cs
Source:
Contact.shared.cs

Initializes a new instance of the Contact class.

public:
 Contact();
public Contact ();
Public Sub New ()

Applies to

Contact(String, String, String, String, String, String, IEnumerable<ContactPhone>, IEnumerable<ContactEmail>, String)

Source:
Contact.shared.cs
Source:
Contact.shared.cs

Initializes a new instance of the Contact class with the given data.

public Contact (string id, string namePrefix, string givenName, string middleName, string familyName, string nameSuffix, System.Collections.Generic.IEnumerable<Microsoft.Maui.ApplicationModel.Communication.ContactPhone> phones, System.Collections.Generic.IEnumerable<Microsoft.Maui.ApplicationModel.Communication.ContactEmail> email, string displayName = default);
new Microsoft.Maui.ApplicationModel.Communication.Contact : string * string * string * string * string * string * seq<Microsoft.Maui.ApplicationModel.Communication.ContactPhone> * seq<Microsoft.Maui.ApplicationModel.Communication.ContactEmail> * string -> Microsoft.Maui.ApplicationModel.Communication.Contact
Public Sub New (id As String, namePrefix As String, givenName As String, middleName As String, familyName As String, nameSuffix As String, phones As IEnumerable(Of ContactPhone), email As IEnumerable(Of ContactEmail), Optional displayName As String = Nothing)

Parameters

id
String

The identifier of the contact.

namePrefix
String

The prefix of the contact.

givenName
String

The given name (or first name) of the contact.

middleName
String

The middle name(s) of the contact.

familyName
String

The family name (or last name) of the contact.

nameSuffix
String

The suffix of the contact.

phones
IEnumerable<ContactPhone>

A collection of phone numbers for the contact.

email
IEnumerable<ContactEmail>

A collection of email addresses for the contact.

displayName
String

The display name of the contact.

Applies to