SiteTraceFailedRequestsLogging 類別

定義

設定失敗要求的記錄檔設定。

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

備註

當您想要 IIS 7 記錄無法從網站或應用程式提供內容的要求相關資訊時,您必須啟用失敗要求的追蹤記錄。 啟用失敗要求的追蹤記錄時,IIS 7 會提供目標記錄,讓您不再需要查看不相關的記錄專案清單,以尋找失敗的要求。 此外,您不需要重新建立錯誤,即可對其進行疑難排解。

類別 SiteTraceFailedRequestsLogging 可讓您設定記錄檔的位置,以及要保留的記錄檔數目上限。

屬性

Attributes

取得組態屬性集合,其中包含這個專案的屬性清單。

(繼承來源 ConfigurationElement)
ChildElements

取得目前專案的所有子專案。

(繼承來源 ConfigurationElement)
Directory

取得或設定失敗要求記錄檔的輸出目錄。

ElementTagName

設定失敗要求的記錄檔設定。

(繼承來源 ConfigurationElement)
Enabled

取得或設定網站的失敗要求追蹤啟用狀態。

IsLocallyStored

取得值,指出組態專案是否儲存在特定組態檔中。

(繼承來源 ConfigurationElement)
Item[String]

取得或設定具有指定名稱的屬性。

(繼承來源 ConfigurationElement)
MaxLogFiles

取得或設定網站要保留的失敗要求記錄檔數目上限。

Methods

取得組態專案的方法集合。

(繼承來源 ConfigurationElement)
RawAttributes

設定失敗要求的記錄檔設定。

(繼承來源 ConfigurationElement)
Schema

取得目前專案的架構。

(繼承來源 ConfigurationElement)

方法

Delete()

設定失敗要求的記錄檔設定。

(繼承來源 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)

適用於