ProviderInfo(ProviderInfo) Constructor
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.
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.