VcardVersionConverter Class

Definition

Namespace: DataStandardizer.File.vCard

Says what happens to a card in another version of vCard, and converts it. A card doesn’t have to be converted to write it as another version: set VcardOptions.WriteVersion. See Versions and canonical forms.

Syntax

public static class VcardVersionConverter

Methods

Method Notes
Analyze(card, version) Lists what a card can’t keep in a version, without changing or writing anything. For vCard 3.0 and 2.1 each item is Lossy. For vCard 4.0 each is VersionConversion: a property of an older version that stays as one 4.0 doesn’t define.
Convert(card, version) A copy of a card with SourceVersion set to that version. It throws VcardFileException if the card has a Lossy item.
Convert(card, version, options) The same, and AllowLossyVersionConversion leaves out what the version can’t hold.

Each throws ArgumentOutOfRangeException for a value that isn’t a VcardVersion member.

Applies to

Targets netstandard1.1, netstandard2.0, netstandard2.1, and net10.0.


This site uses Just the Docs, a documentation theme for Jekyll.