 | ChannelSendFile Method (String, String, Boolean, Boolean, String) |
Uploads 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 Task SendFile(
string sourceDirectory,
string fileName,
bool overwrite = false,
bool resume = false,
string channelPassword = null
)
Public Function SendFile (
sourceDirectory As String,
fileName As String,
Optional overwrite As Boolean = false,
Optional resume As Boolean = false,
Optional channelPassword As String = Nothing
) As Task
public:
Task^ SendFile(
String^ sourceDirectory,
String^ fileName,
bool overwrite = false,
bool resume = false,
String^ channelPassword = nullptr
)
member SendFile :
sourceDirectory : string *
fileName : string *
?overwrite : bool *
?resume : bool *
?channelPassword : string
(* Defaults:
let _overwrite = defaultArg overwrite false
let _resume = defaultArg resume false
let _channelPassword = defaultArg channelPassword null
*)
-> Task
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 (Optional)
- Type: SystemBoolean
when false, upload will abort if remote file exists - resume (Optional)
- Type: SystemBoolean
If we have a previously halted transfer: true = resume, false = restart transfer - channelPassword (Optional)
- Type: SystemString
Optional channel password. Pass empty string or null if unused.
Return Value
Type:
TaskA task that represents the asynchronous upload operation.
See Also