PowerTCP Mail for .NET
Save(String,Boolean) Method
See Also  Send comments on this topic.
Dart.PowerTCP.Mail Namespace > EnhancedStream Class > Save Method : Save(String,Boolean) Method




fileName
The desired name of the destination file.
overwrite
Controls whether or not to overwrite existing files.
Saves the data in the stream to the file specified by fileName.

Syntax

Visual Basic (Declaration) 
Public Overloads Overridable Function Save( _
   ByVal fileName As String, _
   ByVal overwrite As Boolean _
) As String
Visual Basic (Usage)Copy Code
Dim instance As EnhancedStream
Dim fileName As String
Dim overwrite As Boolean
Dim value As String
 
value = instance.Save(fileName, overwrite)
C# 
public virtual string Save( 
   string fileName,
   bool overwrite
)
Managed Extensions for C++ 
public: virtual string* Save( 
   string* fileName,
   bool overwrite
) 
C++/CLI 
public:
virtual String^ Save( 
   String^ fileName,
   bool overwrite
) 

Parameters

fileName
The desired name of the destination file.
overwrite
Controls whether or not to overwrite existing files.

Return Value

A string containing the name of the file the data was written to.

Remarks

This method saves all of the data in the stream to the file specified by fileName. If overwrite is true, this method will create a new file if the specified file does not exist and will overwrite the specified file if it does exist. If overwrite is false, this method will always create a new file, creating a unique filename if the file already exists.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 3.2
© 2010 Dart Communications. All Rights Reserved.