RelationSwitch(ActionVCard, ActionContactID) Method
Performs an
ActionT depending on the
Type of the
encapsulated value.
Namespace: FolkerKinzel.VCards.ModelsAssembly: FolkerKinzel.VCards (in FolkerKinzel.VCards.dll) Version: 8.0.1+a91cc3f0fd39aeb548e16006a60ca9dd10a304a2
public void Switch(
Action<VCard>? vCardAction = null,
Action<ContactID>? contactIDAction = null
)
Public Sub Switch (
Optional vCardAction As Action(Of VCard) = Nothing,
Optional contactIDAction As Action(Of ContactID) = Nothing
)
public:
void Switch(
Action<VCard^>^ vCardAction = nullptr,
Action<ContactID^>^ contactIDAction = nullptr
)
member Switch :
?vCardAction : Action<VCard> *
?contactIDAction : Action<ContactID>
(* Defaults:
let _vCardAction = defaultArg vCardAction null
let _contactIDAction = defaultArg contactIDAction null
*)
-> unit
Parameters
- vCardAction ActionVCard (Optional)
- null, or the ActionT to perform if the encapsulated
value is a VCard.
- contactIDAction ActionContactID (Optional)
- null, or the ActionT to perform if the encapsulated
value is a ContactID.