ModuleServiceProxy 類別

定義

公開衍生類別的功能 ModuleService

public ref class ModuleServiceProxy abstract
public abstract class ModuleServiceProxy
type ModuleServiceProxy = class
Public MustInherit Class ModuleServiceProxy
繼承
ModuleServiceProxy

範例

下列範例示範如何建立衍生自 類別的 ModuleServiceProxy 類別。

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");
        } 

    }
}

備註

永遠不會直接呼叫建構函式。 建立衍生自 ModuleServiceProxy 的自訂類別。

程式邏輯應在衍生類別中 ModuleService 實作,並以強型別方式公開,包裝函式類別會在衍生類別中 ModuleServiceProxy 實作。

建構函式

ModuleServiceProxy()

初始化 ModuleServiceProxy 類別的新執行個體。

方法

GetErrorInformation(Exception, ResourceManager, String, String)

擷取錯誤資訊。

Invoke(String, Object[])

使用指定的引數呼叫指定的方法。

適用於