AttachmentUIManagerExtensionsGetFileContentFromCardAsync - метод
Пространство имён: Tessa.UI.Cards.ForumsСборка: Tessa.UI (в Tessa.UI.dll) Версия: 3.6.0.22
public static Task<(List<string> filePaths, IValidationResultBuilder validationResult)> GetFileContentFromCardAsync(
this IAttachmentManager _,
ICardStreamClientRepository cardStreamClientRepository,
ICardModel cardModel,
Guid? cardID,
Guid fileId,
bool useFileSatellite = false,
CancellationToken cancellationToken = default
)
<ExtensionAttribute>
Public Shared Function GetFileContentFromCardAsync (
_ As IAttachmentManager,
cardStreamClientRepository As ICardStreamClientRepository,
cardModel As ICardModel,
cardID As Guid?,
fileId As Guid,
Optional useFileSatellite As Boolean = false,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of (filePaths As List(Of String), validationResult As IValidationResultBuilder))
public:
[ExtensionAttribute]
static Task<ValueTuple<List<String^>^, IValidationResultBuilder^>>^ GetFileContentFromCardAsync(
IAttachmentManager^ _,
ICardStreamClientRepository^ cardStreamClientRepository,
ICardModel^ cardModel,
Nullable<Guid> cardID,
Guid fileId,
bool useFileSatellite = false,
CancellationToken cancellationToken = CancellationToken()
)
[<ExtensionAttribute>]
static member GetFileContentFromCardAsync :
_ : IAttachmentManager *
cardStreamClientRepository : ICardStreamClientRepository *
cardModel : ICardModel *
cardID : Nullable<Guid> *
fileId : Guid *
?useFileSatellite : bool *
?cancellationToken : CancellationToken
(* Defaults:
let _useFileSatellite = defaultArg useFileSatellite false
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ValueTuple<List<string>, IValidationResultBuilder>>
- _ IAttachmentManager
-
- cardStreamClientRepository ICardStreamClientRepository
-
- cardModel ICardModel
-
- cardID NullableGuid
-
- fileId Guid
-
- useFileSatellite Boolean (Optional)
-
- cancellationToken CancellationToken (Optional)
-
TaskValueTupleListString,
IValidationResultBuilderВ Visual Basic и C# этот метод можно вызывать как метод экземпляра для любого объекта типа
IAttachmentManager. При вызове метода для экземпляра следует опускать первый параметр. Дополнительные сведения см. в разделе
Методы расширения (Visual Basic) или
Методы расширения (Руководство по программированию в C#).