語言

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 伺服器可取得的資料。

屬性

名稱 Description
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

取得請求的網址。

Verb

取得用於請求的 HTTP 動詞。

方法

名稱 Description
Delete()

代表對 IIS 7 伺服器的單一請求。

(繼承來源 ConfigurationElement)
GetAttribute(String)

回傳 ConfigurationAttribute 一個代表所請求屬性的物件。

(繼承來源 ConfigurationElement)
GetAttributeValue(String)

回傳指定屬性的值。

(繼承來源 ConfigurationElement)
GetChildElement(String, Type)

回傳一個子元素,該子元素位於目前的組態元素下,且具有指定的名稱與類型。

(繼承來源 ConfigurationElement)
GetChildElement(String)

回傳一個位於目前配置元素下且名稱相同的子元素。

(繼承來源 ConfigurationElement)
GetCollection()

回傳目前配置元素的預設集合。

(繼承來源 ConfigurationElement)
GetCollection(String, Type)

回傳具有指定名稱與類型且位於目前配置元素下的組態元素。

(繼承來源 ConfigurationElement)
GetCollection(String)

回傳屬於目前配置元素的所有配置元素。

(繼承來源 ConfigurationElement)
GetCollection(Type)

回傳具有指定類型且屬於目前配置元素的組態元素。

(繼承來源 ConfigurationElement)
GetMetadata(String)

回傳元素結構中的元資料值。

(繼承來源 ConfigurationElement)
SetAttributeValue(String, Object)

設定指定屬性的值。

(繼承來源 ConfigurationElement)
SetMetadata(String, Object)

從元素結構中設定元資料值。

(繼承來源 ConfigurationElement)

適用於