IAdmByteQuantifiedSize
The IAdmByteQuantifiedSize interface can be used to store and convert data size.
Inheritance: IUnknown
Note
To create a new instance of the IAdmByteQuantifiedSize interface, you need to call the default constructor of the AdmByteQuantifiedSize class that implements the interface.
How
- PowerShell
-
[Reflection.Assembly]::LoadWithPartialName("Softerra.Adaxes.Adsi") $size = New-Object "Softerra.Adaxes.Adsi.Exchange.AdmByteQuantifiedSize"
- C#
-
using Softerra.Adaxes.Interop.Adsi; using Softerra.Adaxes.Adsi; using Softerra.Adaxes.Interop.Adsi.Exchange; using Softerra.Adaxes.Interop.Adsi.PersistentObjects; class Program { static void Main(string[] args) { AdmByteQuantifiedSize size = new AdmByteQuantifiedSize(); } }
Methods
-
Method
-
Description
-
GetBytes()
-
Returns the current size in bytes.
-
GetKBytes()
-
Returns the current size in kilobytes.
-
GetMBytes()
-
Returns the current size in megabytes.
-
GetGBytes()
-
Returns the current size in gigabytes.
-
GetTBytes()
-
Returns the current size in terabytes.
-
SetBytes()
-
Sets the size in bytes.
-
SetKBytes()
-
Sets the size in kilobytes.
-
SetMBytes()
-
Sets the size in megabytes.
-
SetGBytes()
-
Sets the size in gigabytes.
-
SetTBytes()
-
Sets the size in terabytes.
Properties
-
Property
-
Description
-
TotalSize
-
Gets the total size in bytes.
Details
GetBytes()
Returns the current size in bytes. If the current size is greater than Int32::MaxValue, the method throws the System::OverflowException.
Int32 GetBytes()
GetKBytes()
Returns the current size in kilobytes. If the current size is greater than Int32::MaxValue, the method throws the System::OverflowException.
Int32 GetKBytes()
GetMBytes()
Returns the current size in megabytes. If the current size is greater than Int32::MaxValue, the method throws the System::OverflowException.
Int32 GetMBytes()
GetGBytes()
Returns the current size in gigabytes. If the current size is greater than Int32::MaxValue, the method throws the System::OverflowException.
Int32 GetGBytes()
GetTBytes()
Returns the current size in terabytes. If the current size is greater than Int32::MaxValue, the method throws the System::OverflowException.
Int32 GetTBytes()
SetBytes()
Sets the size in bytes.
Int32 SetBytes(Int32 value)
SetKBytes()
Sets the size in kilobytes.
Int32 SetKBytes(Int32 value)
SetMBytes()
Sets the size in megabytes.
Int32 SetMBytes(Double value)
SetGBytes()
Sets the size in gigabytes.
Int32 SetGBytes(Double value)
SetTBytes()
Sets the size in terabytes.
Int32 SetTBytes(Double value)
TotalSize
Gets the total size in bytes.
- Type:
- IADsLargeInteger
- Access:
- Read/Write
Requirements
Minimum required version: 2013.1