FileContentHelperTryGetFileInfoAsync - метод
Try get physical file info.
Пространство имён: Tessa.Content.FilesСборка: Tessa (в Tessa.dll) Версия: 4.0.4
public static Task<(Guid CardID, Guid FileID, string FileName, Guid FileVersionID)?> TryGetFileInfoAsync(
IDbScope dbScope,
Guid id,
bool isVersion = true,
CancellationToken cancellationToken = default
)
Public Shared Function TryGetFileInfoAsync (
dbScope As IDbScope,
id As Guid,
Optional isVersion As Boolean = true,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of (CardID As Guid, FileID As Guid, FileName As String, FileVersionID As Guid)?)
public:
static Task<Nullable<ValueTuple<Guid, Guid, String^, Guid>>>^ TryGetFileInfoAsync(
IDbScope^ dbScope,
Guid id,
bool isVersion = true,
CancellationToken cancellationToken = CancellationToken()
)
static member TryGetFileInfoAsync :
dbScope : IDbScope *
id : Guid *
?isVersion : bool *
?cancellationToken : CancellationToken
(* Defaults:
let _isVersion = defaultArg isVersion true
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<Nullable<ValueTuple<Guid, Guid, string, Guid>>>
- dbScope IDbScope
Объект для взаимодействия с базой данных.
Определяет область видимости объекта
DbManager.
- id Guid
- Identifier of file or version.
- isVersion Boolean (Optional)
- Identify file version or file.
- cancellationToken CancellationToken (Optional)
Propagates notification that operations should be canceled.
TaskNullableValueTupleGuid,
Guid,
String,
GuidPhysical file info.