Compartilhar via


ProviderInfo(ProviderInfo) Constructor

Definition

Constructs an instance of the class using an existing reference as a template.

protected:
 ProviderInfo(System::Management::Automation::ProviderInfo ^ providerInfo);
protected ProviderInfo (System.Management.Automation.ProviderInfo providerInfo);
new System.Management.Automation.ProviderInfo : System.Management.Automation.ProviderInfo -> System.Management.Automation.ProviderInfo
Protected Sub New (providerInfo As ProviderInfo)

Parameters

providerInfo
ProviderInfo

The provider information to copy to this instance.

Exceptions

If providerInfo is null.

Remarks

This constructor should be used by derived types to easily copying the base class members from an existing ProviderInfo. This is designed for use by a CmdletProvider during calls to their Start(ProviderInfo) method.

Applies to