RemotingService 类

定义

提供远程处理 XML Web services 的基实现。Provides the base implementation for the remoting XML Web services.

public ref class RemotingService : System::ComponentModel::Component
public class RemotingService : System.ComponentModel.Component
type RemotingService = class
    inherit Component
Public Class RemotingService
Inherits Component
继承

注解

用于从派生RemotingService自类的远程 XML Web service 中访问 ASP.NET。 RemotingServiceThe RemotingService is used to access ASP.NET from within a remoting XML Web service that derives from the RemotingService class.

构造函数

RemotingService()

创建 RemotingService 的实例。Creates an instance of RemotingService.

属性

Application

获取对当前 HTTP 请求的应用程序对象的引用。Gets a reference to the application object for the current HTTP request.

CanRaiseEvents

获取一个指示组件是否可以引发事件的值。Gets a value indicating whether the component can raise an event.

(继承自 Component)
Container

获取包含 IContainerComponentGets the IContainer that contains the Component.

(继承自 Component)
Context

获取 HTTP 服务器用来处理 Web 请求的当前 HTTP 特定的上下文。Gets the current HTTP-specific context that is used by the HTTP server to process Web requests.

DesignMode

获取一个值,用以指示 Component 当前是否处于设计模式。Gets a value that indicates whether the Component is currently in design mode.

(继承自 Component)
Events

获取附加到此 Component 的事件处理程序的列表。Gets the list of event handlers that are attached to this Component.

(继承自 Component)
Server

获取当前请求的 HttpServerUtilityGets the HttpServerUtility for the current request.

Session

获取当前请求的 HttpSessionStateGets the HttpSessionState for the current request.

Site

获取或设置 ISiteComponentGets or sets the ISite of the Component.

(继承自 Component)
User

获取为其运行该代码的用户的安全上下文,包括该用户的标识及其所属的任何角色。Gets the security context of the user on whose behalf the code is running, including that user's identity and any roles that the user belongs to.

方法

CreateObjRef(Type)

创建一个对象,该对象包含生成用于与远程对象进行通信的代理所需的全部相关信息。Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.

(继承自 MarshalByRefObject)
Dispose()

释放由 Component 使用的所有资源。Releases all resources used by the Component.

(继承自 Component)
Dispose(Boolean)

释放由 Component 占用的非托管资源,还可以另外再释放托管资源。Releases the unmanaged resources used by the Component and optionally releases the managed resources.

(继承自 Component)
Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetLifetimeService()

检索控制此实例的生存期策略的当前生存期服务对象。Retrieves the current lifetime service object that controls the lifetime policy for this instance.

(继承自 MarshalByRefObject)
GetService(Type)

返回一个对象,该对象表示由 Component 或它的 Container 提供的服务。Returns an object that represents a service provided by the Component or by its Container.

(继承自 Component)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
InitializeLifetimeService()

获取生存期服务对象来控制此实例的生存期策略。Obtains a lifetime service object to control the lifetime policy for this instance.

(继承自 MarshalByRefObject)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
MemberwiseClone(Boolean)

创建当前 MarshalByRefObject 对象的浅表副本。Creates a shallow copy of the current MarshalByRefObject object.

(继承自 MarshalByRefObject)
ToString()

返回包含 String 的名称的 Component(如果有)。Returns a String containing the name of the Component, if any. 不应重写此方法。This method should not be overridden.

(继承自 Component)

事件

Disposed

在通过调用 Dispose() 方法释放组件时发生。Occurs when the component is disposed by a call to the Dispose() method.

(继承自 Component)

适用于