Share via


ModuleProvider Constructor

Definition

Initializes a new instance of the ModuleProvider class.

protected:
 ModuleProvider();
protected ModuleProvider ();
Protected Sub New ()

Examples

The following example shows a derived class calling the base-class constructor.

class DemoModuleProvider : ModuleProvider {

    DelegationState _delState;

    public DemoModuleProvider()
        : base() {
        Initialize("Demo Module Friendly Name");
        traceModuleProvider();
    }
}

Remarks

The ModuleProvider derived class is the first class constructed in a module provider.

Derived classes should override the ModuleProvider constructor and call the base-class constructor.

Applies to