CmdletProviderManagementIntrinsics.GetOne(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.
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.