Skip to content

IAdmByteQuantifiedSize

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

Inheritance: The IAdmByteQuantifiedSize interface inherits from the IUnknown interface.

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
[Reflection.Assembly]::LoadWithPartialName("Softerra.Adaxes.Adsi")

$size = New-Object "Softerra.Adaxes.Adsi.Exchange.AdmByteQuantifiedSize"
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

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.


Requirements

Minimum required version: 2013.1