PolicyUnit Structure
Represents a size measurement in a log store policy.
Assembly: System.IO.Log (in System.IO.Log.dll)
| Name | Description | |
|---|---|---|
![]() | PolicyUnit(Int64, PolicyUnitType) | Initializes a new instance of the PolicyUnit structure with the specified value and type. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | Indicates whether this instance and a specified object are equal. (Overrides ValueType::Equals(Object^).) |
![]() ![]() | Extents(Int64) | Creates a PolicyUnit of type Extents from the specified number. |
![]() | GetHashCode() | Provides a unique hash code for this object.(Overrides ValueType::GetHashCode().) |
![]() | GetType() | |
![]() ![]() | Percentage(Int64) | Creates a PolicyUnit of type Percentage from the specified number. |
![]() | ToString() | Returns a string representation of this object.(Overrides ValueType::ToString().) |
| Name | Description | |
|---|---|---|
![]() ![]() | Equality(PolicyUnit, PolicyUnit) | Compares two PolicyUnit instances to determine whether they are equal. |
![]() ![]() | Inequality(PolicyUnit, PolicyUnit) | 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.
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.



