Dela via


ContactListLimitedWriteOperations.TryDeleteContactAsync(String) Method

Definition

Asynchronously attempts to delete a contact.

public:
 virtual IAsyncOperation<bool> ^ TryDeleteContactAsync(Platform::String ^ contactId) = TryDeleteContactAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> TryDeleteContactAsync(winrt::hstring const& contactId);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> TryDeleteContactAsync(string contactId);
function tryDeleteContactAsync(contactId)
Public Function TryDeleteContactAsync (contactId As String) As IAsyncOperation(Of Boolean)

Parameters

contactId
String

Platform::String

winrt::hstring

The ID of the contact to delete.

Returns

A Boolean value indicating if the operation was successful.

Attributes

Windows requirements

App capabilities
contactsSystem

Applies to