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 | |
---|---|---|
ByteQuantifiedSize | Initializes a new instance of the ByteQuantifiedSize class with the specified value. |
Top
Methods
Name | Description | |
---|---|---|
CompareTo | Compares this instance to another ByteQuantifiedSize object and returns an indication of their relative values. | |
Equals(Object) | Returns a value indicating whether this instance is equal to a specified object. (Overrides ValueType.Equals(Object).) | |
Equals(ByteQuantifiedSize) | Returns a value that indicates whether this instance is equal to another ByteQuantifiedSize object. | |
FromBytes | Creates a new instance of the ByteQuantifiedSize class from the specified value in bytes. | |
FromGB | Creates a new instance of the ByteQuantifiedSize class from the specified value in gigabytes. | |
FromKB | Creates a new instance of the ByteQuantifiedSize class from the specified value in kilobytes. | |
FromMB | Creates a new instance of the ByteQuantifiedSize class from the specified value in megabytes. | |
FromSpecifiedUnit | Creates a new instance of the ByteQuantifiedSize class from the specified value in the specified units. | |
FromTB | Creates a new instance of the ByteQuantifiedSize class from the specified value in terabytes. | |
GetHashCode | Returns the hash code for this instance. (Overrides ValueType.GetHashCode().) | |
Parse(String) | Converts the string representation of a byte-qualified value to its numeric equivalent. | |
Parse(String, ByteQuantifiedSize.Quantifier) | Converts the string representation of a byte-qualified value to its numeric equivalent in the specified units. | |
RoundUpToUnit | Rounds up the specified ByteQuantifiedSize instance to the lowest value in the specified quantity. | |
ToBytes | Converts this value to bytes. | |
ToGB | Converts this value to gigabytes (GB). | |
ToKB | Converts this value to kilobytes (KB). | |
ToMB | Converts this value to megabytes (MB). | |
ToString() | Converts the numeric value of this instance to its equivalent string representation. (Overrides ValueType.ToString().) | |
ToString(String) | Converts the numeric value of this instance to its equivalent string representation, using the specified format. | |
ToString(String, IFormatProvider) | Converts the numeric value of this instance to its equivalent string representation using the specified format and culture-specific format information. | |
ToTB | Converts this value to terabytes (TB). | |
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. | |
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 | |
---|---|---|
Addition(ByteQuantifiedSize, ByteQuantifiedSize) | Adds two ByteQuantifiedSize instances. | |
Addition(ByteQuantifiedSize, Int32) | Adds an integer value to a ByteQuantifiedSize instance. | |
Addition(ByteQuantifiedSize, UInt64) | Adds a 64-bit integer value to a ByteQuantifiedSize instance. | |
Division(ByteQuantifiedSize, ByteQuantifiedSize) | Divides one ByteQuantifiedSize instance by another. | |
Division(ByteQuantifiedSize, Int32) | Divides a ByteQuantifiedSize instance by an integer. | |
Division(ByteQuantifiedSize, UInt64) | Divides a ByteQuantifiedSize instance by a 64-bit integer. | |
Equality | Determines whether two specified instances of ByteQuantifiedSize are equal. | |
Explicit(ByteQuantifiedSize to UInt64) | Converts the value of the specified ByteQuantifiedSize to a 64-bit unsigned integer. | |
Explicit(ByteQuantifiedSize to Double) | Converts the value of the specified ByteQuantifiedSize to a double value. | |
GreaterThan | Indicates whether a specified ByteQuantifiedSize instance is greater than another specified ByteQuantifiedSize instance. | |
GreaterThanOrEqual | Indicates whether a specified ByteQuantifiedSize instance is greater than or equal to another specified ByteQuantifiedSize instance. | |
Inequality | Indicates whether a specified ByteQuantifiedSize instance is not equal to another specified ByteQuantifiedSize instance. | |
LessThan | Indicates whether a specified ByteQuantifiedSize instance is less than another specified ByteQuantifiedSize instance. | |
LessThanOrEqual | Indicates whether a specified ByteQuantifiedSize instance is less than or equal to another specified ByteQuantifiedSize instance. | |
Multiply(ByteQuantifiedSize, ByteQuantifiedSize) | Multiplies one ByteQuantifiedSize instance by another. | |
Multiply(ByteQuantifiedSize, Int32) | Multiplies a ByteQuantifiedSize instance by an integer. | |
Multiply(ByteQuantifiedSize, UInt64) | Multiplies a ByteQuantifiedSize instance by a 64-bit integer. | |
Subtraction(ByteQuantifiedSize, ByteQuantifiedSize) | Subtracts two ByteQuantifiedSize instances. | |
Subtraction(ByteQuantifiedSize, Int32) | Subtracts an integer value from a ByteQuantifiedSize instance. | |
Subtraction(ByteQuantifiedSize, UInt64) | Subtracts a 64-bit integer value from a ByteQuantifiedSize instance. |
Top
Fields
Name | Description | |
---|---|---|
KilobyteQuantifierProvider | A format provider for values expressed in kilobytes. | |
MaxValue | Returns the largest possible value of the ByteQuantifiedSize class. | |
MegabyteQuantifierProvider | A format provider for values expressed in megabytes. | |
MinValue | Returns the smallest possible value of the ByteQuantifiedSize class. | |
Zero | Returns the value of zero for a ByteQuantifiedSize class. |
Top