ITempFileLinkProviderCreateFileVersionAccessLinkAsync - метод
Create temporary link to access a given file version.
Пространство имён: Tessa.Content.FilesСборка: Tessa (в Tessa.dll) Версия: 4.0.4
Task<string> CreateFileVersionAccessLinkAsync(
Guid cardID,
Guid fileID,
Guid fileVersionID,
string? fileTypeName = null,
bool isVirtual = false,
TimeSpan? lifetime = null,
bool forClient = true,
CancellationToken cancellationToken = default
)
Function CreateFileVersionAccessLinkAsync (
cardID As Guid,
fileID As Guid,
fileVersionID As Guid,
Optional fileTypeName As String = Nothing,
Optional isVirtual As Boolean = false,
Optional lifetime As TimeSpan? = Nothing,
Optional forClient As Boolean = true,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of String)
Task<String^>^ CreateFileVersionAccessLinkAsync(
Guid cardID,
Guid fileID,
Guid fileVersionID,
String^ fileTypeName = nullptr,
bool isVirtual = false,
Nullable<TimeSpan> lifetime = nullptr,
bool forClient = true,
CancellationToken cancellationToken = CancellationToken()
)
abstract CreateFileVersionAccessLinkAsync :
cardID : Guid *
fileID : Guid *
fileVersionID : Guid *
?fileTypeName : string *
?isVirtual : bool *
?lifetime : Nullable<TimeSpan> *
?forClient : bool *
?cancellationToken : CancellationToken
(* Defaults:
let _fileTypeName = defaultArg fileTypeName null
let _isVirtual = defaultArg isVirtual false
let _lifetime = defaultArg lifetime null
let _forClient = defaultArg forClient true
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<string>
- cardID Guid
- Card identifier.
- fileID Guid
- File identifier.
- fileVersionID Guid
- File version identifier.
- fileTypeName String (Optional)
- File type name.
- isVirtual Boolean (Optional)
- File is virtual or not.
- lifetime NullableTimeSpan (Optional)
- Desired token lifetime. May be null for "infinite" or "undefined" lifetime.
- forClient Boolean (Optional)
- Flag for client link generation.
- cancellationToken CancellationToken (Optional)
Propagates notification that operations should be canceled.
TaskStringTemporary link to access a given file version.