IProjectEnvironment
Assembly: ZennoLab.InterfacesLibrary
Full name: ZennoLab.InterfacesLibrary.ProjectModel.IProjectEnvironment
Contains information of the envirovment.
Properties
CoresCount
Property
Gets the processors count for the computer.
СoresFrequency
Property
Gets the frequency of processors for the computer, in megahertz.
TotalMemoryAmount
Property
Gets the total amount of physical memory for the computer, in bytes.
AvailableMemoryAmount
Property
Gets the total amount of free physical memory for the computer, in bytes.
IpAddress
Property
Gets the ip address for the computer.
Drives
Property
Retrieves the drive names of all logical drives on a computer.
Methods
GetFreeSpaceAmout
Method
Indicates the amount of available free space on a drive, in bytes.
Parameters
| Параметр | Описание |
|---|---|
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));