DriveManagementIntrinsics.GetAllAtScope(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.