LogPolicy Class
Represents the policy associated with a LogStore.
Assembly: System.IO.Log (in System.IO.Log.dll)
| 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 | |
![]() | MinimumExtentCount | |
![]() | 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.) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | 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.
Available since 3.0
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

