An abstract class that is the common interface for defining a usage type. A corresponding SPUsageEntry class is used for doing the actual usage logging.
SPUsageDefinition 类型公开以下成员。
构造函数
| 名称 | 说明 | |
|---|---|---|
![]() |
SPUsageDefinition() | The default constructor, which is called implicitly by the default constructors of derived classes. |
![]() |
SPUsageDefinition(SPFarm) | This constructor initializes the object instance to be used with a specific SPFarm object containing the global settings for the servers, services, and solutions that are installed in a server farm. This constructor is intended for use only by the SPFarm object and should not be used by any other object. |
页首
属性
| 名称 | 说明 | |
|---|---|---|
![]() |
DaysToKeepData | Gets or sets the number of days to keep data. |
![]() |
DaysToKeepDetailedData | This property controls the number of days to keep detailed data. Must be less than DaysToKeepData. |
![]() |
DaysToKeepUsageFiles | This property controls the number of days to keep detailed data. Must be less than DaysToKeepDetailedData. |
![]() |
Description | Gets a detailed string description of this type of SPUsageDefinition. |
![]() |
DisplayName | 获取描述管理用户界面中的持久的对象实例显示名称。 (从 SPPersistedObject 继承。) |
![]() |
Enabled | Gets or sets a value specifying whether usage logging has been enabled for this type. |
![]() |
EnableReceivers | Gets or sets a value indicating whether usage receivers are enabled for this usage type. |
![]() |
Farm | 获取对象所在的服务器场。 (从 SPPersistedObject 继承。) |
![]() |
Hidden | Gets a Boolean value that determines whether the usage definition is shown in the user interface. |
![]() |
Id | 获取或设置与对象关联的 GUID。 (从 SPPersistedObject 继承。) |
![]() |
MaxTotalSizeInBytes | This property stores the maximum SQL storage size for the data of this provider. |
![]() |
Name | 获取或设置用于唯一地标识具有相同的父和类的两个对象的名称。 (从 SPPersistedObject 继承。) |
![]() |
Parent | 获取配置对象树的逻辑层次结构中的父级。 (从 SPPersistedObject 继承。) |
![]() |
Properties | 持久化对象获取元数据。 (从 SPPersistedObject 继承。) |
![]() |
Receivers | Gets this usage definition's collection of receivers. |
![]() |
Status | 获取或设置类表示对象的状态。 (从 SPPersistedObject 继承。) |
![]() ![]() |
TableColumnsMaxSize | This property returns the maximum length of usage definition column. It is typically used when instantiating an SPColumnDefinition object representing a string column. |
![]() |
TypeName | 获取描述管理用户界面中的对象类型显示名称。 (从 SPPersistedObject 继承。) |
![]() |
UpgradedPersistedProperties | 获取已删除或更改的字段的字段名称和值的集合。 (从 SPAutoSerializingObject 继承。) |
![]() |
UsageEntryType | Contains the type of the SPUsageEntry class that corresponds to this SPUsageDefinition. |
![]() |
Version | 获取一个值,更新的对象每次都会递增。 (从 SPPersistedObject 继承。) |
![]() |
WasCreated | 获取一个布尔值,该值指示对象是否已初始化并可以在数据库中找到。 (从 SPPersistedObject 继承。) |
页首
方法
| 名称 | 说明 | |
|---|---|---|
![]() |
Clone | 返回克隆的对象不是来自内存中的缓存,从而使调用代码,以帮助确保线程安全的。 (从 SPPersistedObject 继承。) |
![]() |
Delete | 删除对象。 (从 SPPersistedObject 继承。) |
![]() |
Equals | 确定当前的持久化的对象是否等于指定的对象。 (从 SPPersistedObject 继承。) |
![]() |
Finalize | (从 Object 继承。) |
![]() |
GetChild<T>() | 返回基于指定类型上的持久对象的子级。 (从 SPPersistedObject 继承。) |
![]() |
GetChild<T>(String) | 返回基于指定的名称的持久对象的子对象。 (从 SPPersistedObject 继承。) |
![]() |
GetHashCode | 作为保留对象的哈希函数。 (从 SPPersistedObject 继承。) |
![]() ![]() |
GetLocal<T> | This static method is used instead of the constructor to create a new instance of the derived SPUsageDefinition class, if necessary, and to retrieve it from the database. |
![]() |
GetObjectData | 获取对象的序列化的状态。 (从 SPAutoSerializingObject 继承。) |
![]() |
GetType | (从 Object 继承。) |
![]() |
HasAdditionalUpdateAccess | 重写此方法以允许多个用户更新该对象。 (从 SPPersistedObject 继承。) |
![]() |
ImportEntries | Called during import of usage data with the actual usage entries that have been collected from the usage log files. |
![]() |
MemberwiseClone | (从 Object 继承。) |
![]() |
OnDeserialization | 后立即调用基类反序列本身要做额外的工作。 (从 SPPersistedObject 继承。) |
![]() |
ProcessData | Called daily by the usage processing timer job. Can be used to process and/or aggregate data for this usage definition. |
![]() |
Provision | 到本地服务器之前可以使用该对象所需要进行的更改。 (从 SPPersistedObject 继承。) |
![]() |
ToString | 返回的类型和名称以及所有祖先 (父、 祖,等等) 的对象。 (从 SPPersistedObject 继承。) |
![]() |
TruncateData | Called daily by the usage processing timer job. Can be used to purge all data for this usage definition. |
![]() |
Uncache | 释放由该对象使用的内存缓存。 (从 SPPersistedObject 继承。) |
![]() |
Unprovision | 对清理后删除对象所需的本地服务器中进行更改。 (从 SPPersistedObject 继承。) |
![]() |
Update() | 使对象以保存其状态,并将更改传播到服务器场中的所有计算机。 (从 SPPersistedObject 继承。) |
![]() |
Update(Boolean) | 使对象以保存其状态,并将更改传播到所有计算机的服务器场中,如果在配置存储区中已存在的对象时可选择引发异常。 (从 SPPersistedObject 继承。) |
![]() |
UpdateParent | 如果存在的话),来更新其状态,将导致包含SPPersistedObject。 (从 SPAutoSerializingObject 继承。) |
![]() |
Validate | Validates the properties of this usage definition (覆盖 SPPersistedObject.Validate()。) |
页首
.gif)
.gif)
.gif)
.gif)
.gif)