HostResourceHandler class | QSYS API Reference Guide

Facilities to deal with resources available in the Host server.

Namespace: ASNA.QSys.Expo.Model Assembly: ASNA.QSys.Expo.Model.dll

Inheritance: Object

Methods

Signature Description
GetContentType(String) Determine the MIME type associated with a file extension.
GetHostFile(HttpContext, String) Get a file stored at the host.

string GetContentType(string filePath)

Determine the MIME type associated with a file extension.

string GetContentType(string filePath)

Parameters

Type Parameter name Description
String filePath The file path with an extension.

Returns

Type Description
String The MIME type

IActionResult GetHostFile(HttpContext httpContext, string hostFileID)

Get a file stored at the host.

IActionResult GetHostFile(HttpContext httpContext, string hostFileID)

Parameters

Type Parameter name Description
HttpContext httpContext The information associated with the current HTTP request.
String hostFileID The identifier for the requested host file.

Returns

Type Description
IActionResult The file contents result or a bad request result.