[HttpGetAttribute("{name}")]
[SessionMethodAttribute(UserAccessLevel.Regular)]
[ProducesAttribute("text/plain", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
[ProducesResponseTypeAttribute(204)]
public Task<IActionResult> GetNamedWallpaperAsync(
[FromRouteAttribute] string? name,
[FromQueryAttribute] GetWallpaperMode mode = GetWallpaperMode.None,
CancellationToken cancellationToken = default
)
<HttpGetAttribute("{name}")>
<SessionMethodAttribute(UserAccessLevel.Regular)>
<ProducesAttribute("text/plain", New String() { ... })>
<ProducesResponseTypeAttribute(200)>
<ProducesResponseTypeAttribute(204)>
Public Function GetNamedWallpaperAsync (
<FromRouteAttribute> name As String,
<FromQueryAttribute> Optional mode As GetWallpaperMode = GetWallpaperMode.None,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of IActionResult)
public:
[HttpGetAttribute(L"{name}")]
[SessionMethodAttribute(UserAccessLevel::Regular)]
[ProducesAttribute(L"text/plain", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(200)]
[ProducesResponseTypeAttribute(204)]
Task<IActionResult^>^ GetNamedWallpaperAsync(
[FromRouteAttribute] String^ name,
[FromQueryAttribute] GetWallpaperMode mode = GetWallpaperMode::None,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpGetAttribute("{name}")>]
[<SessionMethodAttribute(UserAccessLevel.Regular)>]
[<ProducesAttribute("text/plain", new string[] { ... })>]
[<ProducesResponseTypeAttribute(200)>]
[<ProducesResponseTypeAttribute(204)>]
member GetNamedWallpaperAsync :
[<FromRouteAttribute>] name : string *
[<FromQueryAttribute>] ?mode : GetWallpaperMode *
?cancellationToken : CancellationToken
(* Defaults:
let _mode = defaultArg mode GetWallpaperMode.None
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<IActionResult>
Name of the wallpaper file. If its the same as UserWallpaperName setting in server configuration, then get custom wallpaper uploaded by current user.
As it is query parameter of string type, URI encoding is required to pass it.
ArgumentException | Wallpaper isn't found. |