Partager via


GetVCardStream Method

GetVCardStream Method

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Returns the Microsoft ActiveX Data Objects (ADO) Stream object containing vCard stream information about the contact.

Applies To

IPerson Interface

Type Library

Microsoft CDO for Exchange 2000 Library

DLL Implemented In

CDOEX.DLL

Syntax

[Visual Basic]Function GetVCardStream
() As ADODB.Stream

[C++]HRESULT GetVCardStream (     _Stream** Stream );

Parameters

  • Stream
    If the method succeeds, then on return, the address passed holds a reference to the _Stream interface.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

Use the GetvCardStream method to share contact information with other personal information manager (PIM) or contact applications that can parse vCard content.

Example

[Visual Basic]

Dim oPer As New CDO.Person Dim strm As New ADODB.Stream

'assume strURL is a valid URL to a person contact item oPer.DataSource.Open strURL

'you can set the ADO Stream object to the returned vCard stream Set strm = oPer.GetvCardStream

'save the stream to a file strm.SaveToFile "d:\vcard.txt", adSaveCreateOverwrite

'Use the Stream methods off GetvCardStream directly oPer.GetvCardStream.SaveToFile "d:\vcard.txt", _ adSaveCreateOverwrite

Send us your feedback about the Microsoft Exchange Server 2003 SDK.

Build: June 2007 (2007.618.1)

© 2003-2006 Microsoft Corporation. All rights reserved. Terms of use.