Share via


ModulePage.CreateProxy(Type) Method

Definition

Retrieves the service proxy for the page.

protected:
 Microsoft::Web::Management::Client::ModuleServiceProxy ^ CreateProxy(Type ^ proxyType);
protected Microsoft.Web.Management.Client.ModuleServiceProxy CreateProxy (Type proxyType);
member this.CreateProxy : Type -> Microsoft.Web.Management.Client.ModuleServiceProxy
Protected Function CreateProxy (proxyType As Type) As ModuleServiceProxy

Parameters

proxyType
Type

The Type of the ModuleServiceProxy derived class.

Returns

The ModuleServiceProxy object for the page.

Examples

The following example creates the service proxy when the module is initialized.

void initProxyRefresh(bool initialActivation) {

    if (initialActivation) {
        _serviceProxy = (DemoModuleServiceProxy)
            CreateProxy(typeof(DemoModuleServiceProxy));
        Refresh();
    }
}

Applies to