This documentation is archived and is not being maintained.
PolicyUnit Structure
Visual Studio 2010
Represents a size measurement in a log store policy.
Assembly: System.IO.Log (in System.IO.Log.dll)
The PolicyUnit type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | PolicyUnit | Initializes a new instance of the PolicyUnit structure with the specified value and type. |
| Name | Description | |
|---|---|---|
![]() | Equals | Indicates whether this instance and a specified object are equal. (Overrides ValueType::Equals(Object).) |
![]() ![]() | Extents | Creates a PolicyUnit of type Extents from the specified number. |
![]() | 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 | Provides a unique hash code for this object. (Overrides ValueType::GetHashCode().) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() ![]() | Percentage | Creates a PolicyUnit of type Percentage from the specified number. |
![]() | ToString | Returns a string representation of this object. (Overrides ValueType::ToString().) |
| Name | Description | |
|---|---|---|
![]() ![]() | Equality | Compares two PolicyUnit instances to determine whether they are equal. |
![]() ![]() | Inequality | Compares two PolicyUnit instances to determine whether they are not equal. |
The PolicyUnit structure represents a size measurement in a log store policy. The PolicyUnitType enumeration lists the units of measurement that can be represented.
You can use the Value property to determine the size of the measurement. To determine the unit of measurement, use the Type property. You can convert other data types to a PolicyUnit by using the Percentage and Extents methods.
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.
Show:
