SettingsUnitRepositoryTryGetRecordAsync - метод

Retrieves a settings unit record by its unique identifier. If multiple records match, the first one found is returned.

Definition

Пространство имён: Tessa.SettingsUnits
Сборка: Tessa (в Tessa.dll) Версия: 4.2.0+ffad8363f63902f18b3b3f4cfa533a14b2fb19a6
C#
public Task<SettingsUnitRecord?> TryGetRecordAsync(
	Guid id,
	bool omitData = false,
	CancellationToken cancellationToken = default
)

Параметры

id  Guid
The unique identifier of the settings unit record.
omitData  Boolean  (Optional)
Indicates whether the Data field will be omitted from the query and the returned record.
cancellationToken  CancellationToken  (Optional)
Propagates notification that operations should be canceled.

Возвращаемое значение

TaskSettingsUnitRecord
The matching SettingsUnitRecord, or if no match is found.

Реализации

ISettingsUnitRepositoryTryGetRecordAsync(Guid, Boolean, CancellationToken)

Заметки

This method performs a permissions check for the current session only if it is not an admin session.
The returned value is not normalized.

См. также