LogPolicy Class
Represents the policy associated with a LogStore.
Assembly: System.IO.Log (in System.IO.Log.dll)
The LogPolicy type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | AutoGrow | Gets or sets a value indicating whether the LogStore can grow automatically. |
![]() | AutoShrinkPercentage | Gets or sets the percentage of free space the LogStore can shrink. |
![]() | GrowthRate | Gets or sets the rate of automatic growth of the LogStore. |
![]() | MaximumExtentCount | Gets or sets the maximum number of LogExtent instances the LogStore can contain. |
![]() | MinimumExtentCount | Gets or sets the minimum number of LogExtent instances the LogStore can contain. |
![]() | NewExtentPrefix | Gets or sets the prefix string for automatically created extents. |
![]() | NextExtentSuffix | Gets or sets the suffix number for new extents. |
![]() | PinnedTailThreshold | Gets or sets the amount of space that the TailPinned event requires for advancing the base of the log. |
| Name | Description | |
|---|---|---|
![]() | Commit | Sets this policy as the current policy for the LogStore. |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | Refresh | Reads the current policy for the LogStore, discarding any changes that may have been made. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
A policy is a set of rules to be followed by a LogStore instance and its clients. A LogPolicy instance is used to examine and modify the policy associated with a specific LogStore. A policy can describe the minimum and maximum allowable log sizes, or how the LogStore instance is allowed to grow. In addition, you can also control whether a LogStore instance can be archived.
After changing any of the properties, you should use the Commit method to ensure that the changes are applied to the LogStore. You can call the Refresh method to discard changes or to get the most current policy.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
