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