| 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) | |
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.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.
Target Platforms: Microsoft .NET Framework 2.0