[HttpGetAttribute("{name}")]
[SessionMethodAttribute(UserAccessLevel.Regular, false, new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
[ProducesResponseTypeAttribute(204)]
[ProducesResponseTypeAttribute(304)]
public Task<ActionResult> GetWallpaperAsync(
[FromRouteAttribute] string? name,
CancellationToken cancellationToken = default
)<HttpGetAttribute("{name}")>
<SessionMethodAttribute(UserAccessLevel.Regular, false, New String() { ... })>
<ProducesResponseTypeAttribute(200)>
<ProducesResponseTypeAttribute(204)>
<ProducesResponseTypeAttribute(304)>
Public Function GetWallpaperAsync (
<FromRouteAttribute> name As String,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ActionResult)public:
[HttpGetAttribute(L"{name}")]
[SessionMethodAttribute(UserAccessLevel::Regular, false, __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(200)]
[ProducesResponseTypeAttribute(204)]
[ProducesResponseTypeAttribute(304)]
Task<ActionResult^>^ GetWallpaperAsync(
[FromRouteAttribute] String^ name,
CancellationToken cancellationToken = CancellationToken()
)[<HttpGetAttribute("{name}")>]
[<SessionMethodAttribute(UserAccessLevel.Regular, false, new string[] { ... })>]
[<ProducesResponseTypeAttribute(200)>]
[<ProducesResponseTypeAttribute(204)>]
[<ProducesResponseTypeAttribute(304)>]
member GetWallpaperAsync :
[<FromRouteAttribute>] name : string *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ActionResult> 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.
| ArgumentException | Wallpaper isn't found. |