ByteQuantifiedSize members

Provides a value that expresses a size expressed in bytes with a qualifier.

The ByteQuantifiedSize type exposes the following members.

Constructors

  Name Description
Public method ByteQuantifiedSize Initializes a new instance of the ByteQuantifiedSize class with the specified value.

Top

Methods

  Name Description
Public method CompareTo Compares this instance to another ByteQuantifiedSize object and returns an indication of their relative values.
Public method Equals(Object) Returns a value indicating whether this instance is equal to a specified object. (Overrides ValueType.Equals(Object).)
Public method Equals(ByteQuantifiedSize) Returns a value that indicates whether this instance is equal to another ByteQuantifiedSize object.
Public methodStatic member FromBytes Creates a new instance of the ByteQuantifiedSize class from the specified value in bytes.
Public methodStatic member FromGB Creates a new instance of the ByteQuantifiedSize class from the specified value in gigabytes.
Public methodStatic member FromKB Creates a new instance of the ByteQuantifiedSize class from the specified value in kilobytes.
Public methodStatic member FromMB Creates a new instance of the ByteQuantifiedSize class from the specified value in megabytes.
Public methodStatic member FromSpecifiedUnit Creates a new instance of the ByteQuantifiedSize class from the specified value in the specified units.
Public methodStatic member FromTB Creates a new instance of the ByteQuantifiedSize class from the specified value in terabytes.
Public method GetHashCode Returns the hash code for this instance. (Overrides ValueType.GetHashCode().)
Public methodStatic member Parse(String) Converts the string representation of a byte-qualified value to its numeric equivalent.
Public methodStatic member Parse(String, ByteQuantifiedSize.Quantifier) Converts the string representation of a byte-qualified value to its numeric equivalent in the specified units.
Public method RoundUpToUnit Rounds up the specified ByteQuantifiedSize instance to the lowest value in the specified quantity.
Public method ToBytes Converts this value to bytes.
Public method ToGB Converts this value to gigabytes (GB).
Public method ToKB Converts this value to kilobytes (KB).
Public method ToMB Converts this value to megabytes (MB).
Public method ToString() Converts the numeric value of this instance to its equivalent string representation. (Overrides ValueType.ToString().)
Public method ToString(String) Converts the numeric value of this instance to its equivalent string representation, using the specified format.
Public method ToString(String, IFormatProvider) Converts the numeric value of this instance to its equivalent string representation using the specified format and culture-specific format information.
Public method ToTB Converts this value to terabytes (TB).
Public methodStatic member TryParse(String, ByteQuantifiedSize) Converts the string representation of a number into its byte-quantified size equivalent. A return value indicates whether the conversion succeeded or failed.
Public methodStatic member TryParse(String, ByteQuantifiedSize.Quantifier, ByteQuantifiedSize) Converts the string representation of a number with a specified unit into its byte-quantified size equivalent. A return value indicates whether the conversion succeeded or failed.

Top

Operators

  Name Description
Public operatorStatic member Addition(ByteQuantifiedSize, ByteQuantifiedSize) Adds two ByteQuantifiedSize instances.
Public operatorStatic member Addition(ByteQuantifiedSize, Int32) Adds an integer value to a ByteQuantifiedSize instance.
Public operatorStatic member Addition(ByteQuantifiedSize, UInt64) Adds a 64-bit integer value to a ByteQuantifiedSize instance.
Public operatorStatic member Division(ByteQuantifiedSize, ByteQuantifiedSize) Divides one ByteQuantifiedSize instance by another.
Public operatorStatic member Division(ByteQuantifiedSize, Int32) Divides a ByteQuantifiedSize instance by an integer.
Public operatorStatic member Division(ByteQuantifiedSize, UInt64) Divides a ByteQuantifiedSize instance by a 64-bit integer.
Public operatorStatic member Equality Determines whether two specified instances of ByteQuantifiedSize are equal.
Public operatorStatic member Explicit(ByteQuantifiedSize to UInt64) Converts the value of the specified ByteQuantifiedSize to a 64-bit unsigned integer.
Public operatorStatic member Explicit(ByteQuantifiedSize to Double) Converts the value of the specified ByteQuantifiedSize to a double value.
Public operatorStatic member GreaterThan Indicates whether a specified ByteQuantifiedSize instance is greater than another specified ByteQuantifiedSize instance.
Public operatorStatic member GreaterThanOrEqual Indicates whether a specified ByteQuantifiedSize instance is greater than or equal to another specified ByteQuantifiedSize instance.
Public operatorStatic member Inequality Indicates whether a specified ByteQuantifiedSize instance is not equal to another specified ByteQuantifiedSize instance.
Public operatorStatic member LessThan Indicates whether a specified ByteQuantifiedSize instance is less than another specified ByteQuantifiedSize instance.
Public operatorStatic member LessThanOrEqual Indicates whether a specified ByteQuantifiedSize instance is less than or equal to another specified ByteQuantifiedSize instance.
Public operatorStatic member Multiply(ByteQuantifiedSize, ByteQuantifiedSize) Multiplies one ByteQuantifiedSize instance by another.
Public operatorStatic member Multiply(ByteQuantifiedSize, Int32) Multiplies a ByteQuantifiedSize instance by an integer.
Public operatorStatic member Multiply(ByteQuantifiedSize, UInt64) Multiplies a ByteQuantifiedSize instance by a 64-bit integer.
Public operatorStatic member Subtraction(ByteQuantifiedSize, ByteQuantifiedSize) Subtracts two ByteQuantifiedSize instances.
Public operatorStatic member Subtraction(ByteQuantifiedSize, Int32) Subtracts an integer value from a ByteQuantifiedSize instance.
Public operatorStatic member Subtraction(ByteQuantifiedSize, UInt64) Subtracts a 64-bit integer value from a ByteQuantifiedSize instance.

Top

Fields

  Name Description
Public fieldStatic member KilobyteQuantifierProvider A format provider for values expressed in kilobytes.
Public fieldStatic member MaxValue Returns the largest possible value of the ByteQuantifiedSize class.
Public fieldStatic member MegabyteQuantifierProvider A format provider for values expressed in megabytes.
Public fieldStatic member MinValue Returns the smallest possible value of the ByteQuantifiedSize class.
Public fieldStatic member Zero Returns the value of zero for a ByteQuantifiedSize class.

Top

See also

Reference

ByteQuantifiedSize structure

Microsoft.Exchange.Data namespace