WallpapersControllerGetWallpaperAsync - метод

Get an wallpaper by its name.

Definition

Пространство имён: Tessa.Web.Client.Controllers
Сборка: Tessa.Web.Client (в Tessa.Web.Client.dll) Версия: 4.2.0+ffad8363f63902f18b3b3f4cfa533a14b2fb19a6
C#
[HttpGetAttribute("{name}")]
[SessionMethodAttribute(UserAccessLevel.Regular, false, new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
[ProducesResponseTypeAttribute(204)]
[ProducesResponseTypeAttribute(304)]
public Task<ActionResult> GetWallpaperAsync(
	[FromRouteAttribute] string? name,
	CancellationToken cancellationToken = default
)

Параметры

name  String

Name of the wallpaper file. If it's the same as UserWallpaperName setting in server configuration, then get custom wallpaper uploaded by current user.

As it is a query parameter of a string type, URI encoding is required to pass it.

cancellationToken  CancellationToken  (Optional)
Token to cancel the async task.

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

TaskActionResult
Wallpaper.

Исключения

ArgumentExceptionWallpaper isn't found.

См. также