DataUrlTryGetText(String, String, String) Method
Tries to retrieve the embedded text and the file type extension from the dataUrl.
Namespace: FolkerKinzel.DataUrlsAssembly: FolkerKinzel.DataUrls (in FolkerKinzel.DataUrls.dll) Version: 1.0.0+b1c843815044ca6fd87a144c9ff16386002c6473
public static bool TryGetText(
string? dataUrl,
out string?? text,
out string?? fileTypeExtension
)
Public Shared Function TryGetText (
dataUrl As String,
<OutAttribute> ByRef text As String,
<OutAttribute> ByRef fileTypeExtension As String
) As Boolean
public:
static bool TryGetText(
String^ dataUrl,
[OutAttribute] String^% text,
[OutAttribute] String^% fileTypeExtension
)
static member TryGetText :
dataUrl : string *
text : string byref *
fileTypeExtension : string byref -> bool
- 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.
Booleantrue if
dataUrl is a valid "data" URL that contains embedded text,
otherwise
false.
Use this method if you are only interested in a specific text that may be embedded in the "data" URL.