 | ChannelRequestFile Method (String, String, Boolean, Boolean, String, CancellationToken) |
Download a file from the server.
Namespace:
TeamSpeak.Sdk.Client
Assembly:
TeamSpeak.Sdk (in TeamSpeak.Sdk.dll) Version: 0.1.6124.20226 (0.1.0.0)
Syntaxpublic Task RequestFile(
string fileName,
string destinationDirectory,
bool overwrite,
bool resume,
string channelPassword,
CancellationToken cancellationToken
)
Public Function RequestFile (
fileName As String,
destinationDirectory As String,
overwrite As Boolean,
resume As Boolean,
channelPassword As String,
cancellationToken As CancellationToken
) As Task
public:
Task^ RequestFile(
String^ fileName,
String^ destinationDirectory,
bool overwrite,
bool resume,
String^ channelPassword,
CancellationToken cancellationToken
)
member RequestFile :
fileName : string *
destinationDirectory : string *
overwrite : bool *
resume : bool *
channelPassword : string *
cancellationToken : CancellationToken -> Task
Parameters
- fileName
- Type: SystemString
Filename of the remote file, which is to be downloaded. - destinationDirectory
- Type: SystemString
Local target directory name where the download file should be saved. - overwrite
- Type: SystemBoolean
when false, download will abort if local file exists - resume
- Type: SystemBoolean
If we have a previously halted transfer: true = resume, false = restart transfer - channelPassword
- Type: SystemString
Optional channel password. Pass empty string or null if unused. - cancellationToken
- Type: System.ThreadingCancellationToken
The token to monitor for cancellation requests. The default value is None
Return Value
Type:
TaskA task that represents the asynchronous download operation.
See Also