ZennoLab Assemblies Documentation
GetFreeSpaceAmout Method
Example 

Type: System.String

The amount of available free space on a drive, in bytes.

Indicates the amount of available free space on a drive, in bytes.
Syntax
long GetFreeSpaceAmout( 
   string folderName
)

Parameters

folderName

Type: System.String

The amount of available free space on a drive, in bytes.

Example
The following example uses the GetFreeSpaceAmout method.
// 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]);
// 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));
Requirements

Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.

See Also

Reference

IProjectEnvironment Interface
IProjectEnvironment Members

Send Feedback