JSCompsFormatterTryFormat Method

Tries to convert an object that implements ICompoundProperty (AddressProperty or NameProperty) to a formatted String, depending on the value of its ComponentOrder property (JSCOMPS).

Definition

Namespace: FolkerKinzel.VCards.Formatters
Assembly: FolkerKinzel.VCards (in FolkerKinzel.VCards.dll) Version: 8.0.1+a91cc3f0fd39aeb548e16006a60ca9dd10a304a2
C#
public static bool TryFormat(
	ICompoundProperty property,
	out string?? formatted
)

Parameters

property  ICompoundProperty
The ICompoundProperty instance to convert.
formatted  String
Contains the formatted String after the method returns successfully.

Return Value

Boolean
true if the conversion was successful, otherwise false.

Exceptions

ArgumentNullExceptionproperty is null.

See Also