LinksControllerGetHtml - метод

Get file contents in HTML format to download it in browser by a link. If error occurs, browser will show error page resolved by the method.

Definition

Пространство имён: Tessa.Web.Client.Controllers
Сборка: Tessa.Web.Client (в Tessa.Web.Client.dll) Версия: 4.0.4
C#
[HttpGetAttribute("html")]
[SessionMethodAttribute(UserAccessLevel.Regular)]
[ProducesResponseTypeAttribute(200)]
public Task<IActionResult> GetHtml(
	[FromQueryAttribute] Guid? cardID,
	[FromQueryAttribute] Guid? fileID,
	[FromQueryAttribute] Guid? versionID = null,
	[FromQueryAttribute] string? fileName = null,
	[FromQueryAttribute] Guid? cardTypeID = null,
	[FromQueryAttribute] string? cardTypeName = null,
	[FromQueryAttribute] string? fileTypeName = null,
	[FromQueryAttribute] bool suggestFileNameForVersion = false,
	[FromQueryAttribute] string? info = null,
	CancellationToken cancellationToken = default
)

Параметры

cardID  NullableGuid
Card identifier.
fileID  NullableGuid
File identifier.
versionID  NullableGuid  (Optional)
File version identifier.
fileName  String  (Optional)
File name with extension.
cardTypeID  NullableGuid  (Optional)
Card type identifier.
cardTypeName  String  (Optional)
Card type name (alias).
fileTypeName  String  (Optional)
File type name (alias).
suggestFileNameForVersion  Boolean  (Optional)
Recommendation to return suggested name for file version.
info  String  (Optional)
Additional parameters of the request Info, serialized as typed JSON.
cancellationToken  CancellationToken  (Optional)
Token to cancel async task.

Возвращаемое значение

TaskIActionResult
File contents in a form browser can download.

См. также