IProjectEnvironment
Assembly: ZennoLab.InterfacesLibrary
Full name: ZennoLab.InterfacesLibrary.ProjectModel.IProjectEnvironment
Kind: interface
Contains information of the envirovment.
Properties
CoresCount
Property
UInt32 CoresCount { get; }
Gets the processors count for the computer.
СoresFrequency
Property
UInt32 СoresFrequency { get; }
Gets the frequency of processors for the computer, in megahertz.
TotalMemoryAmount
Property
UInt64 TotalMemoryAmount { get; }
Gets the total amount of physical memory for the computer, in bytes.
AvailableMemoryAmount
Property
UInt64 AvailableMemoryAmount { get; }
Gets the total amount of free physical memory for the computer, in bytes.
IpAddress
Property
string IpAddress { get; }
Gets the ip address for the computer.
Drives
Property
String[] Drives { get; }
Retrieves the drive names of all logical drives on a computer.
Methods
GetFreeSpaceAmout
Method
long GetFreeSpaceAmout(string folderName)
Indicates the amount of available free space on a drive, in bytes.
Parameters
| Type | Name | Description |
|---|---|---|
string | folderName | The amount of available free space on a drive, in bytes. |
Example
// gets array of all drives
var folders = project.Envirovment.Folders;
// gets count of free space in first drive
var freeSpace = project.Envirovment.GetFreeSpaceAmout(folders[0]);Example2
// gets array of all drives
$folders = $project->Envirovment->Folders;
// gets count of free space in first drive
$freeSpace = $project->Envirovment->GetFreeSpaceAmout($folders->get_Item(0));