Windows Dev Center

StoredContact.ToVcardAsync() method

Retrieves a vCard representation of the contact using the vCard version 3.0 format.

Syntax


Public Function ToVcardAsync() As IAsyncOperation(Of IRandomAccessStream)

Parameters

This method has no parameters.

Return value

Type: IAsyncOperation<IRandomAccessStream>

When this method completes, it returns a stream containing the vCard data. If you use awaitable syntax, the result type is IRandomAccessStream, which is the data.

Requirements (Windows 10 device family)

Device family

Mobile

API contract

Windows.Phone.PhoneContract, introduced version 1.0

Namespace

Windows.Phone.PersonalInformation
Windows::Phone::PersonalInformation [C++]

Metadata

Windows.Phone.PhoneContract.winmd

Capabilities

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

None supported

Minimum supported server

None supported

Minimum supported phone

Windows Phone 8

Namespace

Windows.Phone.PersonalInformation
Windows::Phone::PersonalInformation [C++]

Metadata

Windows.WinMD

Capabilities

ID_CAP_CONTACTS [Windows Phone]

See also

StoredContact
ToVcardAsync(VCardFormat)
Asynchronous programming

 

 

Community Additions

ADD
Show:
© 2015 Microsoft