ByteQuantifiedSize methods

The ByteQuantifiedSize type exposes the following members.

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

See also

Reference

ByteQuantifiedSize structure

Microsoft.Exchange.Data namespace