DataUrlFromText(String, String, DataEncoding) Method
Embeds text URL-encoded in a "data" URL (RFC 2397).
Namespace: FolkerKinzel.DataUrlsAssembly: FolkerKinzel.DataUrls (in FolkerKinzel.DataUrls.dll) Version: 1.0.0+b1c843815044ca6fd87a144c9ff16386002c6473
public static string FromText(
string? text,
string? mimeType = "text/plain",
DataEncoding encoding = DataEncoding.Url
)
Public Shared Function FromText (
text As String,
Optional mimeType As String = "text/plain",
Optional encoding As DataEncoding = DataEncoding.Url
) As String
public:
static String^ FromText(
String^ text,
String^ mimeType = L"text/plain",
DataEncoding encoding = DataEncoding::Url
)
static member FromText :
text : string *
?mimeType : string *
?encoding : DataEncoding
(* Defaults:
let _mimeType = defaultArg mimeType "text/plain"
let _encoding = defaultArg encoding DataEncoding.Url
*)
-> string
- text String
- The text to embed in the "data" URL. text MUST
not be passed URL-encoded.
- mimeType String (Optional)
- The Internet Media Type of the text, or
null for DefaultMediaType.
- encoding DataEncoding (Optional)
- The encoding to use to embed the text.
StringA "data" URL, into which
text is embedded.