ModulePage.CreateProxy(Type) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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();
}
}