ChildItemCmdletProviderIntrinsics.Get ChildItemCmdletProviderIntrinsics.Get ChildItemCmdletProviderIntrinsics.Get Method

Definition

Overloads

Get(String, Boolean) Get(String, Boolean) Get(String, Boolean)

Gets the child items of the container at the given path.

Get(String[], Boolean, Boolean, Boolean) Get(String[], Boolean, Boolean, Boolean) Get(String[], Boolean, Boolean, Boolean)

Gets the child items of the container at the given path(s).

Get(String[], Boolean, UInt32, Boolean, Boolean) Get(String[], Boolean, UInt32, Boolean, Boolean) Get(String[], Boolean, UInt32, Boolean, Boolean)

Gets the child items of the container at the given path(s).

Get(String, Boolean) Get(String, Boolean) Get(String, Boolean)

Gets the child items of the container at the given path.

public System.Collections.ObjectModel.Collection<System.Management.Automation.PSObject> Get (string path, bool recurse);
member this.Get : string * bool -> System.Collections.ObjectModel.Collection<System.Management.Automation.PSObject>
Public Function Get (path As String, recurse As Boolean) As Collection(Of PSObject)
Parameters
path
String String String

The path to the item to retrieve. It may be a drive or provider-qualified path and may include glob characters.

recurse
Boolean Boolean Boolean

If true, gets all the children in all the sub-containers of the specified container. If false, only gets the immediate children of the specified container.

Returns

The children of the container at the specified path. The type of the objects returned are determined by the provider that supports the given path.

Exceptions

If the path refers to a provider that could not be found.

If the path refers to a drive that could not be found.

If path does not contain glob characters and could not be found.

If the provider that the path refers to does not support this operation.

Get(String[], Boolean, Boolean, Boolean) Get(String[], Boolean, Boolean, Boolean) Get(String[], Boolean, Boolean, Boolean)

Gets the child items of the container at the given path(s).

public System.Collections.ObjectModel.Collection<System.Management.Automation.PSObject> Get (string[] path, bool recurse, bool force, bool literalPath);
member this.Get : string[] * bool * bool * bool -> System.Collections.ObjectModel.Collection<System.Management.Automation.PSObject>
Public Function Get (path As String(), recurse As Boolean, force As Boolean, literalPath As Boolean) As Collection(Of PSObject)
Parameters
path
String[]

The path(s) to the item(s) to retrieve. They may be drive or provider-qualified paths and may include glob characters.

recurse
Boolean Boolean Boolean

If true, gets all the children in all the sub-containers of the specified container. If false, only gets the immediate children of the specified container.

force
Boolean Boolean Boolean

Passed on to providers to force operations.

literalPath
Boolean Boolean Boolean

If true, globbing is not done on paths.

Returns

The children of the container at the specified path. The type of the objects returned are determined by the provider that supports the given path.

Exceptions

If the path refers to a provider that could not be found.

If the path refers to a drive that could not be found.

If path does not contain glob characters and could not be found.

If the provider that the path refers to does not support this operation.

Get(String[], Boolean, UInt32, Boolean, Boolean) Get(String[], Boolean, UInt32, Boolean, Boolean) Get(String[], Boolean, UInt32, Boolean, Boolean)

Gets the child items of the container at the given path(s).

public System.Collections.ObjectModel.Collection<System.Management.Automation.PSObject> Get (string[] path, bool recurse, uint depth, bool force, bool literalPath);
member this.Get : string[] * bool * uint32 * bool * bool -> System.Collections.ObjectModel.Collection<System.Management.Automation.PSObject>
Public Function Get (path As String(), recurse As Boolean, depth As UInteger, force As Boolean, literalPath As Boolean) As Collection(Of PSObject)
Parameters
path
String[]

The path(s) to the item(s) to retrieve. They may be drive or provider-qualified paths and may include glob characters.

recurse
Boolean Boolean Boolean

If true, gets all the children in all the sub-containers of the specified container. If false, only gets the immediate children of the specified container.

depth
UInt32 UInt32 UInt32

Limits the depth of recursion; uint.MaxValue performs full recursion.

force
Boolean Boolean Boolean

Passed on to providers to force operations.

literalPath
Boolean Boolean Boolean

If true, globbing is not done on paths.

Returns

The children of the container at the specified path. The type of the objects returned are determined by the provider that supports the given path.

Exceptions

If the path refers to a provider that could not be found.

If the path refers to a drive that could not be found.

If path does not contain glob characters and could not be found.

If the provider that the path refers to does not support this operation.

Applies to