StoredContact.ToVcardAsync Method

Definition

Overloads

ToVcardAsync()

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

ToVcardAsync(VCardFormat)

Retrieves a vCard representation of the contact using the specified vCard format.

ToVcardAsync()

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

public:
 virtual IAsyncOperation<IRandomAccessStream ^> ^ ToVcardAsync() = ToVcardAsync;
/// [Windows.Foundation.Metadata.Overload("ToVcardAsync")]
IAsyncOperation<IRandomAccessStream> ToVcardAsync();
[Windows.Foundation.Metadata.Overload("ToVcardAsync")]
public IAsyncOperation<IRandomAccessStream> ToVcardAsync();
function toVcardAsync()
Public Function ToVcardAsync () As IAsyncOperation(Of IRandomAccessStream)

Returns

IAsyncOperation<IRandomAccessStream>

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

Implements

Attributes

Windows requirements

App capabilities
ID_CAP_CONTACTS [Windows Phone]

See also

Applies to

ToVcardAsync(VCardFormat)

Retrieves a vCard representation of the contact using the specified vCard format.

public:
 virtual IAsyncOperation<IRandomAccessStream ^> ^ ToVcardAsync(VCardFormat format) = ToVcardAsync;
/// [Windows.Foundation.Metadata.Overload("ToVcardWithOptionsAsync")]
IAsyncOperation<IRandomAccessStream> ToVcardAsync(VCardFormat const& format);
[Windows.Foundation.Metadata.Overload("ToVcardWithOptionsAsync")]
public IAsyncOperation<IRandomAccessStream> ToVcardAsync(VCardFormat format);
function toVcardAsync(format)
Public Function ToVcardAsync (format As VCardFormat) As IAsyncOperation(Of IRandomAccessStream)

Parameters

format
VCardFormat

The format that the returned vCard will use.

Returns

IAsyncOperation<IRandomAccessStream>

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

Implements

Attributes

Windows requirements

App capabilities
ID_CAP_CONTACTS [Windows Phone]

See also

Applies to