Windows Dev Center

SaveContactTask Class

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

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

public sealed class SaveContactTask : ChooserBase<SaveContactResult>
<SaveContactTask .../>

The SaveContactTask type exposes the following members.

  NameDescription
Public methodSaveContactTaskInitializes a new instance of the SaveContactTask class.
Top

  NameDescription
Public propertyCompanyGets or sets the name of the company associated with the contact.
Public propertyFirstNameGets or sets the given name of the contact.
Public propertyHomeAddressCityGets or sets the city of the home address associated with the contact.
Public propertyHomeAddressCountryGets or sets the country or region of the home address associated with the contact.
Public propertyHomeAddressStateGets or sets the state of the home address associated with the contact.
Public propertyHomeAddressStreetGets or sets the street name and number of the home address associated with the contact.
Public propertyHomeAddressZipCodeGets or sets the postal code of the home address associated with the contact.
Public propertyHomePhoneGets or sets the home phone number associated with the contact.
Public propertyJobTitleGets or sets the job title associated with the contact.
Public propertyLastNameGets or sets the surname of the contact.
Public propertyMiddleNameGets or sets the middle name of the contact.
Public propertyMobilePhoneGets or sets the mobile phone number associated with the contact.
Public propertyNicknameGets or sets the nickname of the contact.
Public propertyNotesGets or sets a note associated with the contact.
Public propertyOtherEmailGets or sets an additional email address associated with the contact.
Public propertyPersonalEmailGets or sets the personal email address associated with the contact.
Public propertySuffixGets or sets the suffix of the name of the contact.
Public propertyTaskEventArgsThe EventArgs for the Completed event. (Inherited from ChooserBase<TTaskEventArgs>.)
Public propertyTitleGets or sets the title of the name of the contact.
Public propertyWebsiteGets or sets the website associated with the contact.
Public propertyWorkAddressCityGets or sets the city of the work address associated with the contact.
Public propertyWorkAddressCountryGets or sets the country or region of the work address associated with the contact.
Public propertyWorkAddressStateGets or sets the state of the work address associated with the contact.
Public propertyWorkAddressStreetGets or sets the street name and number of the work address associated with the contact.
Public propertyWorkAddressZipCodeGets or sets the postal code of the work address associated with the contact.
Public propertyWorkEmailGets or sets the work email address associated with the contact.
Public propertyWorkPhoneGets or sets the work phone number associated with the contact.
Top

  NameDescription
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Protected methodFireCompletedRaises the Completed event. (Inherited from ChooserBase<TTaskEventArgs>.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodShowLaunches the contacts application and enables the user to save a contact. (Overrides ChooserBase<TTaskEventArgs>.Show().)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public eventCompletedOccurs when a Chooser task is completed. (Inherited from ChooserBase<TTaskEventArgs>.)
Top

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

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

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

Show:
© 2015 Microsoft