Share via


ModuleServiceProxy Constructor

Definition

Initializes a new instance of the ModuleServiceProxy class.

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

Examples

protected override void OnActivated(bool initialActivation) {
    base.OnActivated(initialActivation);

    if (initialActivation) {
        _serviceProxy = (DemoModuleServiceProxy)
            Connection.CreateProxy(Module,
            typeof(DemoModuleServiceProxy));

        Refresh();
    }
}

Remarks

The ModuleServiceProxy constructor is never called directly. The ModuleServiceProxy derived class is created by calling the Microsoft.Web.Management.Client.Connection.CreateProxy or Microsoft.Web.Management.Client.Win32.ModulePage.CreateProxy method.

Applies to