Task<CardStoreResponse> ImportAsync(
CardStoreRequest request,
CardHeader cardHeader = null,
IReadOnlyCollection<Func<CancellationToken, ValueTask<Stream>>> fileStreams = null,
Dictionary<string, Object> importInfo = null,
CardFileFormat format = CardFileFormat.Binary,
Card destinationCard = null,
ICardMergeOptions mergeOptions = null,
ILogger logger = null,
bool wipeDeleted = false,
CancellationToken cancellationToken = default
)
Function ImportAsync (
request As CardStoreRequest,
Optional cardHeader As CardHeader = Nothing,
Optional fileStreams As IReadOnlyCollection(Of Func(Of CancellationToken, ValueTask(Of Stream))) = Nothing,
Optional importInfo As Dictionary(Of String, Object) = Nothing,
Optional format As CardFileFormat = CardFileFormat.Binary,
Optional destinationCard As Card = Nothing,
Optional mergeOptions As ICardMergeOptions = Nothing,
Optional logger As ILogger = Nothing,
Optional wipeDeleted As Boolean = false,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of CardStoreResponse)
Task<CardStoreResponse^>^ ImportAsync(
CardStoreRequest^ request,
CardHeader^ cardHeader = nullptr,
IReadOnlyCollection<Func<CancellationToken, ValueTask<Stream^>>^>^ fileStreams = nullptr,
Dictionary<String^, Object^>^ importInfo = nullptr,
CardFileFormat format = CardFileFormat::Binary,
Card^ destinationCard = nullptr,
ICardMergeOptions^ mergeOptions = nullptr,
ILogger^ logger = nullptr,
bool wipeDeleted = false,
CancellationToken cancellationToken = CancellationToken()
)
abstract ImportAsync :
request : CardStoreRequest *
?cardHeader : CardHeader *
?fileStreams : IReadOnlyCollection<Func<CancellationToken, ValueTask<Stream>>> *
?importInfo : Dictionary<string, Object> *
?format : CardFileFormat *
?destinationCard : Card *
?mergeOptions : ICardMergeOptions *
?logger : ILogger *
?wipeDeleted : bool *
?cancellationToken : CancellationToken
(* Defaults:
let _cardHeader = defaultArg cardHeader null
let _fileStreams = defaultArg fileStreams null
let _importInfo = defaultArg importInfo null
let _format = defaultArg format CardFileFormat.Binary
let _destinationCard = defaultArg destinationCard null
let _mergeOptions = defaultArg mergeOptions null
let _logger = defaultArg logger null
let _wipeDeleted = defaultArg wipeDeleted false
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<CardStoreResponse>
Дополнительная информация, помещаемая в запрос на импорт карточки, или null, если дополнительная информация отсутствует.
Если при экспорте карточки была задана дополнительная информация, то она совмещается с заданной в этом параметре, причём при совпадении ключей информация в параметре переопределяет информацию, заданную при экспорте.