Request 类

定义

表示对 IIS 7 服务器的单个请求。

public ref class Request sealed : Microsoft::Web::Administration::ConfigurationElement
public sealed class Request : Microsoft.Web.Administration.ConfigurationElement
type Request = class
    inherit ConfigurationElement
Public NotInheritable Class Request
Inherits ConfigurationElement
继承

注解

此类的属性是只读的。 此类表示对 IIS 7 服务器的单个请求可用的数据。

属性

Attributes

获取包含此元素的属性列表的配置属性集合。

(继承自 ConfigurationElement)
ChildElements

获取当前元素的所有子元素。

(继承自 ConfigurationElement)
ClientIPAddr

获取远程客户端的 IP 地址。

ConnectionId

获取当前请求的唯一连接标识符。

CurrentModule

获取当前请求正在执行的模块的名称。

ElementTagName

表示对 IIS 7 服务器的单个请求。

(继承自 ConfigurationElement)
HostName

获取当前请求的主机名。

IsLocallyStored

获取一个值,该值指示配置元素是否存储在特定的配置文件中。

(继承自 ConfigurationElement)
Item[String]

获取或设置具有指定名称的属性。

(继承自 ConfigurationElement)
LocalIPAddress

获取当前请求连接到的服务器 IP 地址。

LocalPort

获取当前请求连接到的服务器的 TCP 端口。

Methods

获取配置元素的方法集合。

(继承自 ConfigurationElement)
PipelineState

获取 IIS 7 集成请求处理管道中正在执行的当前请求的状态。

ProcessId

获取当前请求的工作进程的系统进程标识符。

RawAttributes

表示对 IIS 7 服务器的单个请求。

(继承自 ConfigurationElement)
RequestId

获取当前请求的唯一请求标识符。

Schema

获取当前元素的架构。

(继承自 ConfigurationElement)
SiteId

获取当前请求的站点标识符。

TimeElapsed

获取请求期间经过的时间段。

TimeInModule

获取请求已在当前模块中的时间段。

TimeInState

获取请求处于当前状态的时间段。

Url

获取请求的 URL。

Verb

获取用于请求的 HTTP 谓词。

方法

Delete()

表示对 IIS 7 服务器的单个请求。

(继承自 ConfigurationElement)
GetAttribute(String)

返回一个 ConfigurationAttribute 对象,该对象表示请求的属性。

(继承自 ConfigurationElement)
GetAttributeValue(String)

返回指定特性的值。

(继承自 ConfigurationElement)
GetChildElement(String)

返回当前配置元素下且具有指定名称的子元素。

(继承自 ConfigurationElement)
GetChildElement(String, Type)

返回一个子元素,该子元素位于当前配置元素下,具有指定的名称和类型。

(继承自 ConfigurationElement)
GetCollection()

返回当前配置元素的默认集合。

(继承自 ConfigurationElement)
GetCollection(String)

返回属于当前配置元素的所有配置元素。

(继承自 ConfigurationElement)
GetCollection(String, Type)

返回具有指定名称和类型的配置元素,并且位于当前配置元素下。

(继承自 ConfigurationElement)
GetCollection(Type)

返回具有指定类型且位于当前配置元素下的配置元素。

(继承自 ConfigurationElement)
GetMetadata(String)

从元素架构返回元数据值。

(继承自 ConfigurationElement)
SetAttributeValue(String, Object)

设置所指定特性的值。

(继承自 ConfigurationElement)
SetMetadata(String, Object)

设置元素架构中的元数据值。

(继承自 ConfigurationElement)

适用于