SettingsUnitsEditorControllerGetRecord - метод
Retrieves the settings unit record by its name available for current session.
Пространство имён: Tessa.Web.ControllersСборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.2.1+2efecbe35c10dec386bb05925f2876c4acbb708d
[HttpGetAttribute("units/{unitName}/{fragmentName?}")]
[ProducesResponseTypeAttribute(200)]
[ProducesAttribute("application/json", new string[] { ... })]
public Task<ActionResult<SettingsUnitRecord>> GetRecord(
[FromRouteAttribute] string unitName,
[FromRouteAttribute] string? fragmentName,
[FromQueryAttribute] bool defaults = false,
CancellationToken cancellationToken = default
)
<HttpGetAttribute("units/{unitName}/{fragmentName?}")>
<ProducesResponseTypeAttribute(200)>
<ProducesAttribute("application/json", New String() { ... })>
Public Function GetRecord (
<FromRouteAttribute> unitName As String,
<FromRouteAttribute> fragmentName As String,
<FromQueryAttribute> Optional defaults As Boolean = false,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ActionResult(Of SettingsUnitRecord))
public:
[HttpGetAttribute(L"units/{unitName}/{fragmentName?}")]
[ProducesResponseTypeAttribute(200)]
[ProducesAttribute(L"application/json", __gc new array<String^>^ { ... })]
Task<ActionResult<SettingsUnitRecord^>^>^ GetRecord(
[FromRouteAttribute] String^ unitName,
[FromRouteAttribute] String^ fragmentName,
[FromQueryAttribute] bool defaults = false,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpGetAttribute("units/{unitName}/{fragmentName?}")>]
[<ProducesResponseTypeAttribute(200)>]
[<ProducesAttribute("application/json", new string[] { ... })>]
member GetRecord :
[<FromRouteAttribute>] unitName : string *
[<FromRouteAttribute>] fragmentName : string *
[<FromQueryAttribute>] ?defaults : bool *
?cancellationToken : CancellationToken
(* Defaults:
let _defaults = defaultArg defaults false
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ActionResult<SettingsUnitRecord>>
- unitName String
- The unique settings unit name.
- fragmentName String
- The unique settings fragment name within the settings unit if specified.
- defaults Boolean (Optional)
- Indicates that the retrieved settings unit record must setup to default values.
- cancellationToken CancellationToken (Optional)
Propagates notification that operations should be canceled.
TaskActionResultSettingsUnitRecord
Object that describes the settings unit record.