IResponderSendText Method (IRequest, IResponse, String, Encoding, String, Int32) |
Configures the response object to send text back to the browser.
Namespace: VirtualRadar.Interface.WebServerAssembly: VirtualRadar.Interface (in VirtualRadar.Interface.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax void SendText(
IRequest request,
IResponse response,
string text,
Encoding encoding,
string mimeType,
int cacheSeconds
)
Sub SendText (
request As IRequest,
response As IResponse,
text As String,
encoding As Encoding,
mimeType As String,
cacheSeconds As Integer
)
void SendText(
IRequest^ request,
IResponse^ response,
String^ text,
Encoding^ encoding,
String^ mimeType,
int cacheSeconds
)
abstract SendText :
request : IRequest *
response : IResponse *
text : string *
encoding : Encoding *
mimeType : string *
cacheSeconds : int -> unit
Parameters
- request
- Type: VirtualRadar.Interface.WebServerIRequest
The request object - must be supplied. - response
- Type: VirtualRadar.Interface.WebServerIResponse
The response object to fill in - must be supplied. - text
- Type: SystemString
The text to send back - defaults to an empty string. - encoding
- Type: System.TextEncoding
The encoding to use when sending the text - defaults to UTF8. - mimeType
- Type: SystemString
The MimeType to use when sending the text - defaults to MimeType.Text. - cacheSeconds
- Type: SystemInt32
The number of seconds that the browser should cache the response for. Set to 0 to tell the browser not to cache the response.
See Also