ISettingsUnitRepositoryTryGetRecordDataAsync - метод

Attempts to retrieve the data content of a settings unit record by its unique identifier.

Definition

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

Параметры

id  Guid
The unique identifier of the settings unit record.
cancellationToken  CancellationToken  (Optional)
Propagates notification that operations should be canceled.

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

TaskDictionaryString, Object
The settings unit data model that stores configuration values of the specified record if found; otherwise, .

Заметки

This method performs a permissions check for the current session only if it is not an admin session.
Unlike TryGetRecordAsync(Guid, Boolean, CancellationToken), this method retrieves only the data portion of the record and may be more efficient when only the data content is needed without other record metadata.

См. также