SaveContactTask Class

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Provides methods and events for launching the contacts application and enabling a user to save a contact.

Inheritance Hierarchy

System..::.Object
  Microsoft.Phone.Tasks..::.ChooserBase<(Of <(SaveContactResult>)>)
    Microsoft.Phone.Tasks..::.SaveContactTask

Namespace:  Microsoft.Phone.Tasks
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)
XMLNS for XAML: Not mapped to an xmlns.

Syntax

Public NotInheritable Class SaveContactTask _
    Inherits ChooserBase(Of SaveContactResult)
public sealed class SaveContactTask : ChooserBase<SaveContactResult>
<SaveContactTask .../>

The SaveContactTask type exposes the following members.

Constructors

  Name Description
SaveContactTask Initializes a new instance of the SaveContactTask class.

Top

Properties

  Name Description
Company Gets or sets the name of the company associated with the contact.
FirstName Gets or sets the given name of the contact.
HomeAddressCity Gets or sets the city of the home address associated with the contact.
HomeAddressCountry Gets or sets the country or region of the home address associated with the contact.
HomeAddressState Gets or sets the state of the home address associated with the contact.
HomeAddressStreet Gets or sets the street name and number of the home address associated with the contact.
HomeAddressZipCode Gets or sets the postal code of the home address associated with the contact.
HomePhone Gets or sets the home phone number associated with the contact.
JobTitle Gets or sets the job title associated with the contact.
LastName Gets or sets the surname of the contact.
MiddleName Gets or sets the middle name of the contact.
MobilePhone Gets or sets the mobile phone number associated with the contact.
Nickname Gets or sets the nickname of the contact.
Notes Gets or sets a note associated with the contact.
OtherEmail Gets or sets an additional email address associated with the contact.
PersonalEmail Gets or sets the personal email address associated with the contact.
Suffix Gets or sets the suffix of the name of the contact.
TaskEventArgs The EventArgs for the Completed event. (Inherited from ChooserBase<(Of <(TTaskEventArgs>)>).)
Title Gets or sets the title of the name of the contact.
Website Gets or sets the website associated with the contact.
WorkAddressCity Gets or sets the city of the work address associated with the contact.
WorkAddressCountry Gets or sets the country or region of the work address associated with the contact.
WorkAddressState Gets or sets the state of the work address associated with the contact.
WorkAddressStreet Gets or sets the street name and number of the work address associated with the contact.
WorkAddressZipCode Gets or sets the postal code of the work address associated with the contact.
WorkEmail Gets or sets the work email address associated with the contact.
WorkPhone Gets or sets the work phone number associated with the contact.

Top

Methods

  Name Description
Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
FireCompleted Raises the Completed event. (Inherited from ChooserBase<(Of <(TTaskEventArgs>)>).)
GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
GetType Gets the Type of the current instance. (Inherited from Object.)
MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Show Launches the contacts application and enables the user to save a contact. (Overrides ChooserBase<(Of <(TTaskEventArgs>)>)..::.Show()()().)
ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Events

  Name Description
Completed Occurs when a Chooser task is completed. (Inherited from ChooserBase<(Of <(TTaskEventArgs>)>).)

Top

Remarks

This task is a Chooser. For more information, see Launchers and Choosers for Windows Phone 8.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Platforms

Windows Phone

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Phone.Tasks Namespace

Microsoft.Phone.UserData

Other Resources

How to use the save contact task for Windows Phone 8

Contacts and Calendar for Windows Phone 8