 | ChannelSendFile Method (String, String, Boolean, Boolean, String, String) |
Request uploading a local file to the server
Namespace:
TeamSpeak.Sdk.Client
Assembly:
TeamSpeak.Sdk (in TeamSpeak.Sdk.dll) Version: 0.1.6124.20226 (0.1.0.0)
Syntaxpublic FileTransfer SendFile(
string sourceDirectory,
string fileName,
bool overwrite,
bool resume,
string channelPassword,
string returnCode
)
Public Function SendFile (
sourceDirectory As String,
fileName As String,
overwrite As Boolean,
resume As Boolean,
channelPassword As String,
returnCode As String
) As FileTransfer
public:
FileTransfer^ SendFile(
String^ sourceDirectory,
String^ fileName,
bool overwrite,
bool resume,
String^ channelPassword,
String^ returnCode
)
member SendFile :
sourceDirectory : string *
fileName : string *
overwrite : bool *
resume : bool *
channelPassword : string *
returnCode : string -> FileTransfer
Parameters
- sourceDirectory
- Type: SystemString
Local directory where the file to upload is located. - fileName
- Type: SystemString
Filename of the local file, which is to be uploaded. - overwrite
- Type: SystemBoolean
when false, upload will abort if remote 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. - returnCode
- Type: SystemString
a custom string. The ServerError-Event will receive the same custom string in its returnCode parameter. If no error occurred, ServerError will indicate success by passing Ok.
Return Value
Type:
FileTransferA FileTransfer that represents the asynchronous upload operation.
See Also