RemotingService 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
提供远程处理 XML Web 服务的基实现。
public ref class RemotingService : System::ComponentModel::Component
public class RemotingService : System.ComponentModel.Component
type RemotingService = class
inherit Component
Public Class RemotingService
Inherits Component
- 继承
注解
RemotingService用于从派生自 RemotingService 类的远程处理 XML Web 服务中访问 ASP.NET。
构造函数
| 名称 | 说明 |
|---|---|
| RemotingService() |
创建 RemotingService 的实例。 |
属性
| 名称 | 说明 |
|---|---|
| Application |
获取对当前 HTTP 请求的应用程序对象的引用。 |
| CanRaiseEvents |
获取一个值,该值指示组件是否可以引发事件。 (继承自 Component) |
| Container |
IContainer获取包含 .Component (继承自 Component) |
| Context |
获取 HTTP 服务器用于处理 Web 请求的当前特定于 HTTP 的上下文。 |
| DesignMode |
获取一个值,该值指示当前是否 Component 处于设计模式。 (继承自 Component) |
| Events |
获取附加到此 Component对象的事件处理程序的列表。 (继承自 Component) |
| Server |
获取 HttpServerUtility 当前请求。 |
| Session |
获取 HttpSessionState 当前请求。 |
| Site | (继承自 Component) |
| User |
获取代表代码运行的用户的安全上下文,包括该用户的标识和用户所属的任何角色。 |
方法
| 名称 | 说明 |
|---|---|
| CreateObjRef(Type) |
创建一个对象,其中包含生成用于与远程对象通信的代理所需的所有相关信息。 (继承自 MarshalByRefObject) |
| Dispose() |
释放该 Component命令使用的所有资源。 (继承自 Component) |
| Dispose(Boolean) |
释放由托管资源使用 Component 的非托管资源,并选择性地释放托管资源。 (继承自 Component) |
| Equals(Object) |
确定指定的对象是否等于当前对象。 (继承自 Object) |
| GetHashCode() |
用作默认哈希函数。 (继承自 Object) |
| GetLifetimeService() |
已过时.
检索控制此实例的生存期策略的当前生存期服务对象。 (继承自 MarshalByRefObject) |
| GetService(Type) |
返回一个对象,该对象表示服务由 Component 或其 Container提供的服务。 (继承自 Component) |
| GetType() |
获取当前实例的 Type。 (继承自 Object) |
| InitializeLifetimeService() |
已过时.
获取生存期服务对象来控制此实例的生存期策略。 (继承自 MarshalByRefObject) |
| MemberwiseClone() |
创建当前 Object的浅表副本。 (继承自 Object) |
| MemberwiseClone(Boolean) |
创建当前 MarshalByRefObject 对象的浅表副本。 (继承自 MarshalByRefObject) |
| ToString() |
返回包含 String 的名称 Component(如果有)。 不应重写此方法。 (继承自 Component) |
活动
| 名称 | 说明 |
|---|---|
| Disposed |
当组件通过对方法的调用 Dispose() 释放时发生。 (继承自 Component) |