SiteDefaults 类

定义

包含 IIS 7 网站属性的默认值。

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

注解

此类作为 SiteDefaults 类上的 ServerManager 属性公开

属性

Attributes

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

(继承自 ConfigurationElement)
ChildElements

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

(继承自 ConfigurationElement)
ElementTagName

包含 IIS 7 网站属性的默认值。

(继承自 ConfigurationElement)
IsLocallyStored

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

(继承自 ConfigurationElement)
Item[String]

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

(继承自 ConfigurationElement)
Limits

获取服务器上网站与连接相关的默认限制。

LogFile

获取服务器上网站的默认日志文件配置

Methods

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

(继承自 ConfigurationElement)
RawAttributes

包含 IIS 7 网站属性的默认值。

(继承自 ConfigurationElement)
Schema

获取当前元素的架构。

(继承自 ConfigurationElement)
ServerAutoStart

获取或设置一个值,该值指示万维网发布服务 (WWW 服务) 启动时,网站是否将启动。

TraceFailedRequestsLogging

获取网站的默认失败请求日志记录属性。

方法

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)

适用于