public Task<CardStoreResponse> ImportAsync(
CardStoreRequest request,
CardHeader? header = 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
)
Public Function ImportAsync (
request As CardStoreRequest,
Optional header 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)
public:
virtual Task<CardStoreResponse^>^ ImportAsync(
CardStoreRequest^ request,
CardHeader^ header = 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()
) sealed
abstract ImportAsync :
request : CardStoreRequest *
?header : 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 _header = defaultArg header 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>
override ImportAsync :
request : CardStoreRequest *
?header : 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 _header = defaultArg header 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, если дополнительная информация отсутствует.
Если при экспорте карточки была задана дополнительная информация, то она совмещается с заданной в этом параметре, причём при совпадении ключей информация в параметре переопределяет информацию, заданную при экспорте.