This method gives the provider an opportunity to associate provider-specific data with a drive. This is done by deriving a new class from the passed-in PSDriveInfo object and adding any properties, methods, or fields that are necessary.
To do this, the override of this method should first create an instance of a new derived PSDriveInfo class using the passed-in PSDriveInfo object and then return the derived PSDriveInfo object. (Note that the derived PSDriveInfo class should have a constructor that takes a PSDriveInfo object and that calls the PSDriveInfo private constructor.
Each subsequent call into the provider that uses this drive will then have access to the derived PSDriveInfo class via the PSDriveInfo property (which is provided by the base PSDriveInfo class).
For more information about Windows PowerShell providers, see Windows PowerShell Providers in the Windows PowerShell Programmer's Guide.