ContentCmdletProviderIntrinsics.GetReader Method (String)

Retrieves the content reader for the items at the specified path.

Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation.dll)

Dim instance As ContentCmdletProviderIntrinsics
Dim path As String
Dim returnValue As Collection(Of IContentReader)

returnValue = instance.GetReader(path)

public Collection<IContentReader> GetReader (
	string path
public Collection<IContentReader> GetReader (
	String path
public function GetReader (
	path : String
) : Collection<IContentReader>



A drive-qualified or provider-qualified path to the items whose content reader is retrieved. Wildcard characters can be used in the path to point to multiple items.

Return Value

A Collection of IContentReader interfaces for the items at the specified path.

Exception typeCondition

path is null.


path refers to a provider that cannot be found.


path refers to a drive that cannot be found.


path does not contain wildcard characters and cannot be found.


path refers to a provider that does not support this operation.


The provider threw an exception.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


Target Platforms

Windows Developer Preview, Windows Server Developer Preview

Send comments about this topic to Microsoft.
© 2014 Microsoft