共用方式為


FileSystemProvider.GetContentReader(String) Method

Definition

Creates an instance of the FileSystemContentStream class, opens the specified file for reading, and returns the IContentReader interface to it.

public:
 virtual System::Management::Automation::Provider::IContentReader ^ GetContentReader(System::String ^ path);
public System.Management.Automation.Provider.IContentReader GetContentReader (string path);
override this.GetContentReader : string -> System.Management.Automation.Provider.IContentReader
abstract member GetContentReader : string -> System.Management.Automation.Provider.IContentReader
override this.GetContentReader : string -> System.Management.Automation.Provider.IContentReader
Public Function GetContentReader (path As String) As IContentReader

Parameters

path
String

The path of the file to be opened for reading.

Returns

An IContentReader for the specified file.

Implements

Exceptions

path is null or empty.

Applies to