共用方式為


FileSystemProvider.GetContentWriter(String) Method

Definition

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.

Applies to