RawDataSwitch(ActionByte, ActionUri, ActionString) 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<byte[]>? bytesAction = null,
Action<Uri>? uriAction = null,
Action<string>? stringAction = null
)
Public Sub Switch (
Optional bytesAction As Action(Of Byte()) = Nothing,
Optional uriAction As Action(Of Uri) = Nothing,
Optional stringAction As Action(Of String) = Nothing
)
public:
void Switch(
Action<array<unsigned char>^>^ bytesAction = nullptr,
Action<Uri^>^ uriAction = nullptr,
Action<String^>^ stringAction = nullptr
)
member Switch :
?bytesAction : Action<byte[]> *
?uriAction : Action<Uri> *
?stringAction : Action<string>
(* Defaults:
let _bytesAction = defaultArg bytesAction null
let _uriAction = defaultArg uriAction null
let _stringAction = defaultArg stringAction null
*)
-> unit
Parameters
- bytesAction ActionByte (Optional)
- null, or the ActionT to perform if the encapsulated value
is an array of Bytes.
- uriAction ActionUri (Optional)
- null, or the ActionT to perform if the encapsulated
value is a Uri.
- stringAction ActionString (Optional)
- null, or the ActionT to perform if the encapsulated
value is a String.