FileCabinetExtensions UploadDocumentAsync Method (FileCabinet,  FileInfo )DocuWare Platform .NET API
Uploads the specified document asynchronously.

Namespace: DocuWare.Platform.ServerClient
Assembly: DocuWare.Platform.ServerClient (in DocuWare.Platform.ServerClient.dll) Version: 6.5.0.0 (6.5.0.5648)
Syntax

public static Task<DeserializedHttpResponse<Document>> UploadDocumentAsync(
	this FileCabinet fileCabinet,
	params FileInfo[] file
)

Parameters

fileCabinet
Type: DocuWare.Platform.ServerClient FileCabinet
The file cabinet.
file
Type:  OnlineSystem.IO FileInfo 
The file.

Return Value

Type: OnlineTask DeserializedHttpResponse Document  
A task which uploads the document and returns the uploaded document's metadata.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type FileCabinet. When you use instance method syntax to call this method, omit the first parameter. For more information, see OnlineExtension Methods (Visual Basic) or OnlineExtension Methods (C# Programming Guide).
See Also