ITempFileLinkProviderCreateFileAccessTokenAsync - метод
Create access token to a given file.
Пространство имён: Tessa.Content.FilesСборка: Tessa (в Tessa.dll) Версия: 4.0.4
Task<IContentTokenInfo> CreateFileAccessTokenAsync(
Guid cardID,
Guid fileID,
string? fileTypeName = null,
bool isVirtual = false,
TimeSpan? lifetime = null,
CancellationToken cancellationToken = default
)
Function CreateFileAccessTokenAsync (
cardID As Guid,
fileID As Guid,
Optional fileTypeName As String = Nothing,
Optional isVirtual As Boolean = false,
Optional lifetime As TimeSpan? = Nothing,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of IContentTokenInfo)
Task<IContentTokenInfo^>^ CreateFileAccessTokenAsync(
Guid cardID,
Guid fileID,
String^ fileTypeName = nullptr,
bool isVirtual = false,
Nullable<TimeSpan> lifetime = nullptr,
CancellationToken cancellationToken = CancellationToken()
)
abstract CreateFileAccessTokenAsync :
cardID : Guid *
fileID : Guid *
?fileTypeName : string *
?isVirtual : bool *
?lifetime : Nullable<TimeSpan> *
?cancellationToken : CancellationToken
(* Defaults:
let _fileTypeName = defaultArg fileTypeName null
let _isVirtual = defaultArg isVirtual false
let _lifetime = defaultArg lifetime null
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<IContentTokenInfo>
- cardID Guid
- Card identifier.
- fileID Guid
- File 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.
- cancellationToken CancellationToken (Optional)
Propagates notification that operations should be canceled.
TaskIContentTokenInfoFile content temporary access token.