'Declaration
<ExtensionAttribute()> <NotNullAttribute()> Public Overloads Shared Function CreateStreamWriter( _ ByVal writableFileInfo As IWritableFileInfo, _ ByVal fileMode As FileMode, _ ByVal encoding As Encoding _ ) As StreamWriter
'Usage
Dim writableFileInfo As IWritableFileInfo Dim fileMode As FileMode Dim encoding As Encoding Dim value As StreamWriter value = IWritableFileInfoExtension.CreateStreamWriter(writableFileInfo, fileMode, encoding)
[Extension()] [NotNull()] public static StreamWriter CreateStreamWriter( IWritableFileInfo writableFileInfo, FileMode fileMode, Encoding encoding )
[Extension()] [NotNull()] public: static StreamWriter^ CreateStreamWriter( IWritableFileInfo^ writableFileInfo, FileMode fileMode, Encoding^ encoding )
Parameters
- writableFileInfo
- The writable file info object that will perform the operation.
The value of this parameter cannot be
null
(Nothing
in Visual Basic). - fileMode
- A System.IO.FileMode value that specifies whether a file is created if one does not exist, and determines whether the contents of existing files are retained or overwritten.
- encoding
- The character encoding to use.
The value of this parameter cannot be
null
(Nothing
in Visual Basic).
Return Value
This method never returns null
(Nothing
in Visual Basic).