DataUrlTryGetText(String, String, String) Method

Tries to retrieve the embedded text and the file type extension from the dataUrl.

Definition

Namespace: FolkerKinzel.DataUrls
Assembly: FolkerKinzel.DataUrls (in FolkerKinzel.DataUrls.dll) Version: 1.0.0+b1c843815044ca6fd87a144c9ff16386002c6473
C#
public static bool TryGetText(
	string? dataUrl,
	out string?? text,
	out string?? fileTypeExtension
)

Parameters

dataUrl  String
A "data" URL according to RFC 2397.
text  String
If the method returns true, the parameter contains the embedded text. The parameter is passed uninitialized.
fileTypeExtension  String
If the method returns true, the parameter contains an appropriate file type extension for text. The extension starts with the period ".". The parameter is passed uninitialized.

Return Value

Boolean
true if dataUrl is a valid "data" URL that contains embedded text, otherwise false.

Remarks

Use this method if you are only interested in a specific text that may be embedded in the "data" URL.

See Also