Click here to Skip to main content
Licence CPOL
First Posted 8 Apr 2003
Views 90,570
Bookmarked 46 times

.NET class to create and maintain vCard information

By | 8 Apr 2003 | Article
.NET class to create and maintain vCard information

Introduction

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.

Code

    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
            HOME
            WORK
            CELL
        End Enum

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

        Public Enum vPhoneTypes
            VOICE
            FAX
            MSG
        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):

License

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

About the Author

slolife

Web Developer

United States United States

Member

http://www.onlinescorekeeper.com/

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralMy vote of 1 Pinmemberjgauffin1:25 1 Dec '10  
GeneralMy vote of 1 PinmvpDave Kreskowiak5:45 24 Feb '10  
GeneralAttachments PinmemberHrishit20:35 3 Aug '08  
GeneralLink vCard is not a link PinmemberSalam Y. ELIAS21:37 28 Nov '07  
GeneralProblem with adding to vEmails collection PinmemberErick Thompson20:00 29 Nov '04  
GeneralRe: Problem with adding to vEmails collection PinmemberChris Becker6:16 30 Nov '04  
GeneralRe: Problem with adding to vEmails collection PinmemberErick Thompson7:32 30 Nov '04  
GeneralRe: Problem with adding to vEmails collection PinmemberChris Becker7:36 30 Nov '04  
QuestionCan't read a vCard? PinmemberAshaman2:18 27 Oct '04  
AnswerRe: Can't read a vCard? PinmemberChris Becker5:48 27 Oct '04  
GeneralSample of how to Use PinsussAnonymous5:42 9 Jul '04  
QuestionError in code? Pinmemberadrianhesketh3:37 4 Jun '04  
QuestionDrag/drop of a vCard? PinmemberSteven Nies1:12 1 Dec '03  
Questionhow to use questions. Pinmemberseanerk5:41 24 Sep '03  
QuestionHow do i use it Pinmembervbnetuk21:00 14 Apr '03  
AnswerRe: How do i use it PinmemberVladimir Pekulas7:56 31 Mar '05  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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 | Mobile
Web01 | 2.5.120517.1 | Last Updated 9 Apr 2003
Article Copyright 2003 by slolife
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid