Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ModuleServiceProxy Class

Exposes the functionality of the ModuleService derived class.

System..::..Object
  Microsoft.Web.Management.Client..::..ModuleServiceProxy

Namespace:  Microsoft.Web.Management.Client
Assembly:  Microsoft.Web.Management (in Microsoft.Web.Management.dll)

[SecurityPermissionAttribute(SecurityAction.InheritanceDemand, Flags = SecurityPermissionFlag.UnmanagedCode)]
[SecurityPermissionAttribute(SecurityAction.Demand, Flags = SecurityPermissionFlag.UnmanagedCode)]
public abstract class ModuleServiceProxy

The ModuleServiceProxy type exposes the following members.

  NameDescription
Protected methodModuleServiceProxyInitializes a new instance of the ModuleServiceProxy class.
Top

  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodStatic memberGetErrorInformationRetrieves error information.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodInvokeCalls the specified method using the specified arguments.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top

The constructor is never called directly. Create a custom class derived from ModuleServiceProxy.

Program logic should be implemented in a ModuleService derived class and exposed in a strongly typed manner by a wrapper class implemented in the ModuleServiceProxy derived class.

The following example shows how to create a class that derives from the ModuleServiceProxy class.

using System;
using System.Collections;
using Microsoft.Web.Management.Client;

namespace rxDemo {
    internal class DemoModuleServiceProxy : ModuleServiceProxy {
        public DemoModuleServiceProxy() : base() { } 

        public ArrayList GetSettings() {
            return (ArrayList)Invoke("GetSettings");
        } 

    }
}


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show:
© 2015 Microsoft