Opens a stream to the file specified by the URI
Namespace: System.Net.FtpClient
Assembly: System.Net.FtpClient (in System.Net.FtpClient.dll) Version: 1.0.5064.17461
Syntax
C# |
---|
public static Stream OpenAppend(
Uri uri
) |
Visual Basic |
---|
Public Shared Function OpenAppend (
uri As Uri
) As Stream |
Visual C++ |
---|
public:
static Stream^ OpenAppend(
Uri^ uri
) |
Return Value
Type:
StreamStream object
Examples
C# |
Copy
|
using System;
using System.IO;
using System.Net.FtpClient;
namespace Examples {
class OpenAppendURI {
public static void OpenURI() {
using (Stream s = FtpClient.OpenAppend(new Uri("ftp://server/path/file"))) {
try {
}
finally {
s.Close();
}
}
}
}
}
|
See Also