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