Compartilhar via


DriveManagementIntrinsics.GetAllAtScope(String) Method

Definition

Retrieves all the drives in the specified scope.

public:
 System::Collections::ObjectModel::Collection<System::Management::Automation::PSDriveInfo ^> ^ GetAllAtScope(System::String ^ scope);
public System.Collections.ObjectModel.Collection<System.Management.Automation.PSDriveInfo> GetAllAtScope (string scope);
member this.GetAllAtScope : string -> System.Collections.ObjectModel.Collection<System.Management.Automation.PSDriveInfo>
Public Function GetAllAtScope (scope As String) As Collection(Of PSDriveInfo)

Parameters

scope
String

The scope to retrieve the drives from. If null, the drives in all the scopes will be returned.

Returns

Exceptions

If scope is less than zero, or not a number and not "script", "global", "local", or "private"

If scopeID is less than zero or greater than the number of currently active scopes.

Applies to