Documentation

xPCDriveInfo Class

Information for target computer drive

Syntax

public class xPCDriveInfo

Description

Namespace: MathWorks.xPCTarget.FrameWork

Syntax Language: C#

public class xPCDriveInfo accesses information on a target computer drive.

Constructor

ConstructorDescription
xPCDriveInfoInitialize new instance of xPCDriveInfo class

Methods

MethodDescription
xPCDriveInfo.RefreshSynchronize with file drives on target computer

Properties

PropertyC# Declaration SyntaxDescriptionException

AvailableFreespace

public long AvailableFreeSpace {get;}

Indicate amount of available free space on drive.

xPCException — When problem occurs, query xPCException object Reason property.

DriveFormat

public string DriveFormat {get;}

Get name of file system type, such as FAT-32.

xPCException — When problem occurs, query xPCException object Reason property.

DriveType

public slrtDriveType DriveType {get;}

Get drive type, such as DRIVE_REMOVABLE, DRIVE_FIXED, or DRIVE_RAMDISK.

xPCException — When problem occurs, query xPCException object Reason property.

Name

public string Name {get;}

Get name of drive.

xPCException — When problem occurs, query xPCException object Reason property.

RootDirectory

public xPCDirectoryInfo RootDirectory {get;}

Get root folder of drive.

xPCException — When problem occurs, query xPCException object Reason property.

TotalSize

public long TotalSize {get;}

Get total size of drive in bytes.

xPCException — When problem occurs, query xPCException object Reason property.

VolumeLabel

public string VolumeLabel {get;}

Get volume label of drive.

xPCException — When problem occurs, query xPCException object Reason property.

Introduced in R2011b

Was this topic helpful?