TX Text Control .NET Server

SetFileDirectoryAsync Method

Method|Introduced in 21.0
Namespace
TXTextControl.Web
Package
None: the TX Text Control .NET Server setup installs it, for .NET Framework.
Assembly
TXTextControl.Web.dll

Description

Determines the directory path where the files of a specific file type are stored.

Syntax

public async System.Threading.Tasks.Task SetFileDirectory(string directory, Web.FileType type);

Parameters

ParameterDescription
directory

Specifies the directory path where the files of a specific file type are stored.

type

Specifies one of the FileType values.

Examples

The following example uses TextControl.SetFileDirectory in a document-processing workflow.

var result = textControl.SetFileDirectory("Quarterly report", TXTextControl.Web.FileType.Document);
Console.WriteLine(result);