Capacity Class
Namespace: Hazelcast.Models
Assembly: Hazelcast.Net.dll
Represents a memory capacity.
public class Capacity
Inherited Members
Constructors
Name | Description |
---|---|
Capacity(long) | Initializes a new instance of the Capacity class. |
Capacity(long, MemoryUnit) | Initializes a new instance of the Capacity class. |
Properties
Name | Description |
---|---|
Bytes | Gets the value of the capacity in bytes. |
GigaBytes | Gets the value of the capacity in giga-bytes. |
KiloBytes | Gets the value of the capacity in kilo-bytes. |
MegaBytes | Gets the value of the capacity in mega-bytes. |
Unit | Gets the memory capacity unit. |
Value | Gets the memory capacity expressed in Unit. |
Methods
Name | Description |
---|---|
Of(long, MemoryUnit) | Creates a new instance of the Capacity class. |
Parse(string) | Parses the string representation of a capacity. |
Parse(string, MemoryUnit) | Parses the string representation of a capacity. |
ToPrettyString() | Formats this capacity. |
ToPrettyString(long) | Formats the capacity. |
ToPrettyString(long, MemoryUnit) | Formats the capacity. |
ToString() | Returns a string that represents the current object. |