Click here to Skip to main content
13,301,619 members (66,213 online)
Click here to Skip to main content
Add your own
alternative version


48 bookmarked
Posted 8 Apr 2003

.NET class to create and maintain vCard information

, 8 Apr 2003
Rate this:
Please Sign up or sign in to vote.
.NET class to create and maintain vCard information
<!-- Add the rest of your HTML here -->


In a previous article, .NET class to create and maintain vCalendar information, I created a class to export calendar information to a vCalendar file. I have now also created an class to export contact information to a vCard file format. Again, I have tried to stick with the specs, but also tried to adapt the class to the way MS Outlook understands this format.

I am having some problems including the code directly in the article, so here is a brief overview of the vCard class.


Public Class vCard
    Public Class vEmails
    End Class

    Public Class vEmail
    End Class

    Public Class vURLs
    End Class

    Public Class vURL
    End Class

    Public Class vTelephones
    End Class

    Public Class vTelephone
    End Class

    Public Class vAddresss
    End Class

    Public Class vAddress
    End Class

    Public Enum vLocations
    End Enum

    Public Enum vAddressTypes
        PARCEL  'Parcel post'
        DOM     'Domestic'
        INT     'International'
    End Enum

    Public Enum vPhoneTypes
    End Enum
End Class

Also see my article .NET class to create and maintain vCalendar information

vCard specs

Here are some links to for the vCard specs (thanks Tommi):


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Web Developer
United States United States

You may also be interested in...


Comments and Discussions

GeneralMy vote of 1 Pin
jgauffin1-Dec-10 2:25
memberjgauffin1-Dec-10 2:25 
GeneralMy vote of 1 Pin
Dave Kreskowiak24-Feb-10 6:45
mvpDave Kreskowiak24-Feb-10 6:45 
Not really an article. It's just a code snippet with no real concrete methods in it. It doesn't demonstrate a concept, but seems to be an update to another articel you have. There's no discussion of any concepts, nothing on how the implementations, ... it doesn't really teach anything.
GeneralAttachments Pin
Hrishit3-Aug-08 21:35
memberHrishit3-Aug-08 21:35 
GeneralLink vCard is not a link Pin
Salam Y. ELIAS28-Nov-07 22:37
memberSalam Y. ELIAS28-Nov-07 22:37 
GeneralProblem with adding to vEmails collection Pin
Erick Thompson29-Nov-04 21:00
memberErick Thompson29-Nov-04 21:00 
GeneralRe: Problem with adding to vEmails collection Pin
Chris Becker30-Nov-04 7:16
memberChris Becker30-Nov-04 7:16 
GeneralRe: Problem with adding to vEmails collection Pin
Erick Thompson30-Nov-04 8:32
memberErick Thompson30-Nov-04 8:32 
GeneralRe: Problem with adding to vEmails collection Pin
Chris Becker30-Nov-04 8:36
memberChris Becker30-Nov-04 8:36 
QuestionCan't read a vCard? Pin
Ashaman27-Oct-04 3:18
memberAshaman27-Oct-04 3:18 
AnswerRe: Can't read a vCard? Pin
Chris Becker27-Oct-04 6:48
memberChris Becker27-Oct-04 6:48 
GeneralSample of how to Use Pin
Anonymous9-Jul-04 6:42
sussAnonymous9-Jul-04 6:42 
QuestionError in code? Pin
adrianhesketh4-Jun-04 4:37
memberadrianhesketh4-Jun-04 4:37 
QuestionDrag/drop of a vCard? Pin
Steven Nies1-Dec-03 2:12
memberSteven Nies1-Dec-03 2:12 
Questionhow to use questions. Pin
seanerk24-Sep-03 6:41
memberseanerk24-Sep-03 6:41 
QuestionHow do i use it Pin
vbnetuk14-Apr-03 22:00
membervbnetuk14-Apr-03 22:00 
AnswerRe: How do i use it Pin
Vladimir Pekulas31-Mar-05 8:56
memberVladimir Pekulas31-Mar-05 8:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.171207.1 | Last Updated 9 Apr 2003
Article Copyright 2003 by slolife
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid