Task<CardStoreResponse> ImportAsync(
ISourceContentProvider sourceContentProvider,
Dictionary<string, Object> importInfo = null,
CardFileFormat format = CardFileFormat.Binary,
Card destinationCard = null,
ICardMergeOptions mergeOptions = null,
ILogger logger = null,
Func<string, bool> ignoredFilesFunc = null,
bool wipeDeleted = false,
CancellationToken cancellationToken = default
)
Function ImportAsync (
sourceContentProvider As ISourceContentProvider,
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 ignoredFilesFunc As Func(Of String, Boolean) = Nothing,
Optional wipeDeleted As Boolean = false,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of CardStoreResponse)
Task<CardStoreResponse^>^ ImportAsync(
ISourceContentProvider^ sourceContentProvider,
Dictionary<String^, Object^>^ importInfo = nullptr,
CardFileFormat format = CardFileFormat::Binary,
Card^ destinationCard = nullptr,
ICardMergeOptions^ mergeOptions = nullptr,
ILogger^ logger = nullptr,
Func<String^, bool>^ ignoredFilesFunc = nullptr,
bool wipeDeleted = false,
CancellationToken cancellationToken = CancellationToken()
)
abstract ImportAsync :
sourceContentProvider : ISourceContentProvider *
?importInfo : Dictionary<string, Object> *
?format : CardFileFormat *
?destinationCard : Card *
?mergeOptions : ICardMergeOptions *
?logger : ILogger *
?ignoredFilesFunc : Func<string, bool> *
?wipeDeleted : bool *
?cancellationToken : CancellationToken
(* Defaults:
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 _ignoredFilesFunc = defaultArg ignoredFilesFunc null
let _wipeDeleted = defaultArg wipeDeleted false
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<CardStoreResponse>
Дополнительная информация, помещаемая в запрос на импорт карточки, или null, если дополнительная информация отсутствует.
Если при экспорте карточки была задана дополнительная информация, то она совмещается с заданной в этом параметре, причём при совпадении ключей информация в параметре переопределяет информацию, заданную при экспорте.