CmdletProviderManagementIntrinsics.GetOne(String) Method

Definition

Gets the specified provider(s).

public:
 System::Management::Automation::ProviderInfo ^ GetOne(System::String ^ name);
public System.Management.Automation.ProviderInfo GetOne (string name);
member this.GetOne : string -> System.Management.Automation.ProviderInfo
Public Function GetOne (name As String) As ProviderInfo

Parameters

name
String

Either the fully-qualified or friendly name for the provider.

Returns

The provider information for the specified provider.

Exceptions

If name is null or empty.

If name is not PSSnapin-qualified and more than one provider exists with the specified name.

If the provider specified by name is not currently loaded.

Applies to