FileSystemProvider.GetContentReader(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 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.