IAdmByteQuantifiedSize

The IAdmByteQuantifiedSize interface can be used to store and convert data size.

Inheritance: IUnknown

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

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 int::MaxValue, the method throws the System::OverflowException.

int GetBytes()

GetKBytes()

Returns the current size in kilobytes. If the current size is greater than int::MaxValue, the method throws the System::OverflowException.

int GetKBytes()

GetMBytes()

Returns the current size in megabytes. If the current size is greater than int::MaxValue, the method throws the System::OverflowException.

int GetMBytes()

GetGBytes()

Returns the current size in gigabytes. If the current size is greater than int::MaxValue, the method throws the System::OverflowException.

int GetGBytes()

GetTBytes()

Returns the current size in terabytes. If the current size is greater than int::MaxValue, the method throws the System::OverflowException.

int GetTBytes()

SetBytes()

Sets the size in bytes.

int SetBytes(int value)

SetKBytes()

Sets the size in kilobytes.

int SetKBytes(int value)

SetMBytes()

Sets the size in megabytes.

int SetMBytes(Double value)

SetGBytes()

Sets the size in gigabytes.

int SetGBytes(Double value)

SetTBytes()

Sets the size in terabytes.

int SetTBytes(Double value)

TotalSize

Gets the total size in bytes.


Requirements

Minimum required version: 2013.1