FileSystemProvider.GetContentWriter(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates an instance of the FileSystemContentStream class, opens the specified file for writing, and returns the IContentReader interface to it.
public:
virtual System::Management::Automation::Provider::IContentWriter ^ GetContentWriter(System::String ^ path);
public System.Management.Automation.Provider.IContentWriter GetContentWriter (string path);
override this.GetContentWriter : string -> System.Management.Automation.Provider.IContentWriter
abstract member GetContentWriter : string -> System.Management.Automation.Provider.IContentWriter
override this.GetContentWriter : string -> System.Management.Automation.Provider.IContentWriter
Public Function GetContentWriter (path As String) As IContentWriter
Parameters
- path
- String
The path of the file to be opened for writing.
Returns
An IContentWriter for the specified file.
Implements
Exceptions
path is null or empty.