Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ContentCmdletProviderIntrinsics::GetReader Method (String^)

 

Updated: April 27, 2016

Applies To: Windows PowerShell

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

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

public:
Collection<IContentReader^>^ GetReader(
	String^ path
)

Parameters

path
Type: System::String^

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

Type: System.Collections.ObjectModel::Collection<IContentReader^>^

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

Exception Condition
ArgumentNullException

path is null.

ProviderNotFoundException

path refers to a provider that cannot be found.

DriveNotFoundException

path refers to a drive that cannot be found.

ItemNotFoundException

path does not contain wildcard characters and cannot be found.

NotSupportedException

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

ProviderInvocationException

The provider threw an exception.

Return to top

Community Additions

Show: