ModuleServiceProxy 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
公開衍生類別的功能 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[]) |
使用指定的引數呼叫指定的方法。 |