SiteLogFile 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
配置网站的日志记录。
public ref class SiteLogFile sealed : Microsoft::Web::Administration::ConfigurationElement
public sealed class SiteLogFile : Microsoft.Web.Administration.ConfigurationElement
type SiteLogFile = class
inherit ConfigurationElement
Public NotInheritable Class SiteLogFile
Inherits ConfigurationElement
- 继承
注解
此类的某些属性是相互依赖的;因此,请务必仔细阅读每个属性的文档。 例如,TruncateSize除非 将 属性设置为 Microsoft.Web.Administration.LoggingRolloverPeriod.MaxSize,否则 Period 属性将没有任何效果。
属性
Attributes |
获取包含此元素的属性列表的配置属性集合。 (继承自 ConfigurationElement) |
ChildElements |
获取当前元素的所有子元素。 (继承自 ConfigurationElement) |
CustomLogFields |
配置网站的日志记录。 |
CustomLogPluginClsid |
获取或设置用于自定义日志记录的插件模块的 GUID。 |
Directory |
获取或设置一个值,该值指定存储日志文件的目录的名称。 |
ElementTagName |
配置网站的日志记录。 (继承自 ConfigurationElement) |
Enabled |
获取或设置一个值,该值指示是否为网站启用日志记录。 |
IsLocallyStored |
获取一个值,该值指示配置元素是否存储在特定的配置文件中。 (继承自 ConfigurationElement) |
Item[String] |
获取或设置具有指定名称的属性。 (继承自 ConfigurationElement) |
LocalTimeRollover |
获取或设置一个值,该值指示日志文件是基于本地时间还是协调世界时 (UTC) 。 |
LogExtFileFlags |
获取或设置记录在日志文件中的属性。 |
LogFormat |
获取或设置日志文件的格式。 |
LogTargetW3C |
配置网站的日志记录。 |
Methods |
获取配置元素的方法集合。 (继承自 ConfigurationElement) |
Period |
获取或设置一个值,该值指定创建新日志文件的频率。 |
RawAttributes |
配置网站的日志记录。 (继承自 ConfigurationElement) |
Schema |
获取当前元素的架构。 (继承自 ConfigurationElement) |
TruncateSize |
获取或设置截断日志文件内容的大小(以字节为单位)。 |
方法
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) |