Share via


DriveManagementIntrinsics.GetAllForProvider(String) Method

Definition

Gets all the drives for the specified provider.

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

Parameters

providerName
String

The name of the provider to get the drives for.

Returns

All the drives in all the scopes for the given provider.

Applies to