AddressesBuilderSetPreferences Method

Sets the Preference properties of the items in the Addresses property depending on their position in that collection and allows to specify whether to skip empty items in that process. (The first item gets the highest preference 1.)

Definition

Namespace: FolkerKinzel.VCards.BuilderParts
Assembly: FolkerKinzel.VCards (in FolkerKinzel.VCards.dll) Version: 8.0.1+a91cc3f0fd39aeb548e16006a60ca9dd10a304a2
C#
public VCardBuilder SetPreferences(
	bool skipEmptyItems = true
)

Parameters

skipEmptyItems  Boolean  (Optional)
true to give empty VCardProperty objects always the lowest Preference (100), independently of their position in the collection, or false to treat empty VCardProperty objects like any other. (null references are always skipped.)

Return Value

VCardBuilder
The VCardBuilder instance that initialized this AddressesBuilder to be able to chain calls.

Exceptions

InvalidOperationExceptionThe method has been called on an instance that had been initialized using the default constructor.

See Also