Argument | Description | Types / Required |
text | The text to map. | string
required |
contentType | The MIME type of the mapped content.
The default value is "text/plain". | string
not required |
By specifying
contentType, you can override how the local web server defines the
Content-Type header when serving the text content. For example, if the text is HTML content, you would set
contentType to
"text/html".
The action returns a string containing the localhost URL that can be used to access the text. The URL is valid as long as the CSPro application is running.
The action throws an exception if any of its arguments are not specified in a valid form.