'Declaration
<ExtensionAttribute()> <NotNullAttribute()> Public Overloads Shared Function CreateStreamWriter( _ ByVal writableFileInfo As IWritableFileInfo, _ ByVal fileMode As FileMode _ ) As StreamWriter
'Usage
Dim writableFileInfo As IWritableFileInfo Dim fileMode As FileMode Dim value As StreamWriter value = IWritableFileInfoExtension.CreateStreamWriter(writableFileInfo, fileMode)
[Extension()] [NotNull()] public static StreamWriter CreateStreamWriter( IWritableFileInfo writableFileInfo, FileMode fileMode )
[Extension()] [NotNull()] public: static StreamWriter^ CreateStreamWriter( IWritableFileInfo^ writableFileInfo, FileMode fileMode )
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.
Return Value
This method never returns null
(Nothing
in Visual Basic).