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)

'Usage
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>

Parameters

path

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
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.

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.
Show:
© 2014 Microsoft