PolicyUnit Structure

 

Represents a size measurement in a log store policy.

Namespace:   System.IO.Log
Assembly:  System.IO.Log (in System.IO.Log.dll)

public value struct PolicyUnit

NameDescription
System_CAPS_pubmethodPolicyUnit(Int64, PolicyUnitType)

Initializes a new instance of the PolicyUnit structure with the specified value and type.

NameDescription
System_CAPS_pubpropertyType

Gets the unit type of the PolicyUnit.

System_CAPS_pubpropertyValue

Gets the value of the PolicyUnit.

NameDescription
System_CAPS_pubmethodEquals(Object^)

Indicates whether this instance and a specified object are equal. (Overrides ValueType::Equals(Object^).)

System_CAPS_pubmethodSystem_CAPS_staticExtents(Int64)

Creates a PolicyUnit of type Extents from the specified number.

System_CAPS_pubmethodGetHashCode()

Provides a unique hash code for this object.(Overrides ValueType::GetHashCode().)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticPercentage(Int64)

Creates a PolicyUnit of type Percentage from the specified number.

System_CAPS_pubmethodToString()

Returns a string representation of this object.(Overrides ValueType::ToString().)

NameDescription
System_CAPS_puboperatorSystem_CAPS_staticEquality(PolicyUnit, PolicyUnit)

Compares two PolicyUnit instances to determine whether they are equal.

System_CAPS_puboperatorSystem_CAPS_staticInequality(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.

This example shows how to use the LogPolicy class and PolicyUnit structure to set policy for a log record sequence.

No code example is currently available or this language may not be supported.

.NET Framework
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.

Return to top
Show: