WallpapersControllerPostStoreWallpaper - метод
Upload wallpaper file selected by the user, then select it as current and get image source string.
Пространство имён: Tessa.Web.Client.ControllersСборка: Tessa.Web.Client (в Tessa.Web.Client.dll) Версия: 4.0.4
[HttpPostAttribute("store")]
[DisableRequestSizeLimitAttribute]
[SessionMethodAttribute(UserAccessLevel.Regular)]
[ProducesAttribute("text/plain", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
[ProducesResponseTypeAttribute(204)]
public Task<IActionResult> PostStoreWallpaper(
IFormFile image,
CancellationToken cancellationToken = default
)
<HttpPostAttribute("store")>
<DisableRequestSizeLimitAttribute>
<SessionMethodAttribute(UserAccessLevel.Regular)>
<ProducesAttribute("text/plain", New String() { ... })>
<ProducesResponseTypeAttribute(200)>
<ProducesResponseTypeAttribute(204)>
Public Function PostStoreWallpaper (
image As IFormFile,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of IActionResult)
public:
[HttpPostAttribute(L"store")]
[DisableRequestSizeLimitAttribute]
[SessionMethodAttribute(UserAccessLevel::Regular)]
[ProducesAttribute(L"text/plain", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(200)]
[ProducesResponseTypeAttribute(204)]
Task<IActionResult^>^ PostStoreWallpaper(
IFormFile^ image,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpPostAttribute("store")>]
[<DisableRequestSizeLimitAttribute>]
[<SessionMethodAttribute(UserAccessLevel.Regular)>]
[<ProducesAttribute("text/plain", new string[] { ... })>]
[<ProducesResponseTypeAttribute(200)>]
[<ProducesResponseTypeAttribute(204)>]
member PostStoreWallpaper :
image : IFormFile *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<IActionResult>
- image IFormFile
- Wallpaper image contents.
- cancellationToken CancellationToken (Optional)
- Token to cancel async task.
TaskIActionResultString containing image source for the wallpaper.