ContactListLimitedWriteOperations ContactListLimitedWriteOperations ContactListLimitedWriteOperations ContactListLimitedWriteOperations Class

Definition

Provides operations that an app can perform on a contact list that it has not created.

public : sealed class ContactListLimitedWriteOperations : IContactListLimitedWriteOperations
public sealed class ContactListLimitedWriteOperations : IContactListLimitedWriteOperations
Public NotInheritable Class ContactListLimitedWriteOperations Implements IContactListLimitedWriteOperations
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)
Capabilities
contactsSystem

Remarks

Get an instance of this class by using the LimitedWriteOperations property of a ContactList.

Methods

TryCreateOrUpdateContactAsync(Contact) TryCreateOrUpdateContactAsync(Contact) TryCreateOrUpdateContactAsync(Contact) TryCreateOrUpdateContactAsync(Contact)

Asynchronously attempts to create or update a contact.

public : IAsyncOperation<Platform::Boolean> TryCreateOrUpdateContactAsync(Contact contact)
public IAsyncOperation<bool> TryCreateOrUpdateContactAsync(Contact contact)
Public Function TryCreateOrUpdateContactAsync(contact As Contact) As IAsyncOperation( Of bool )
Windows.ApplicationModel.Contacts.ContactListLimitedWriteOperations.tryCreateOrUpdateContactAsync(contact).done( /* Your success and error handlers */ );
Parameters
contact
Contact Contact Contact Contact

The contact to create or update.

Returns

A Boolean value indicating if the operation was successful.

Additional features and requirements
Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)
Capabilities
contactsSystem

TryDeleteContactAsync(String) TryDeleteContactAsync(String) TryDeleteContactAsync(String) TryDeleteContactAsync(String)

Asynchronously attempts to delete a contact.

public : IAsyncOperation<Platform::Boolean> TryDeleteContactAsync(Platform::String contactId)
public IAsyncOperation<bool> TryDeleteContactAsync(String contactId)
Public Function TryDeleteContactAsync(contactId As String) As IAsyncOperation( Of bool )
Windows.ApplicationModel.Contacts.ContactListLimitedWriteOperations.tryDeleteContactAsync(contactId).done( /* Your success and error handlers */ );
Parameters
contactId
Platform::String String String String

The ID of the contact to delete.

Returns

A Boolean value indicating if the operation was successful.

Additional features and requirements
Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)
Capabilities
contactsSystem