CmdletProvider.Start Method

Definition

Gives the provider the opportunity to initialize itself.

protected virtual System.Management.Automation.ProviderInfo Start (System.Management.Automation.ProviderInfo providerInfo);
Parameters
providerInfo
ProviderInfo

The information about the provider that is being started.

Returns

Remarks

The default implementation returns the ProviderInfo instance that was passed.

        To have session state maintain persisted data on behalf of the provider,
        the provider should derive from <xref href="System.Management.Automation.ProviderInfo"></xref>
        and add any properties or
        methods for the data it wishes to persist.  When Start gets called the
        provider should construct an instance of its derived ProviderInfo using the
        providerInfo that is passed in and return that new instance.