NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Environment.GetLogicalDrives

Retrieves the names of the logical drives on this machine in the form "C:\".

[Visual Basic]
Public Shared Function GetLogicalDrives() As String ()
[C#]
public static string[] GetLogicalDrives();
[C++]
public: static String* GetLogicalDrives() [];
[JScript]
public static function GetLogicalDrives() : String[];

Return Value

The logical drives on this machine.

Exceptions

Exception Type Condition
IOException An I/O error occurs.
SecurityException The caller does not have the required SystemInfoPermission.

Requirements

NGWS Runtime Security:

SecurityPermissionFlag Permission to use unmanaged code.
EnvironmentPermission Unrestricted access to environment variables.

See Also

Environment Class | Environment Members | System Namespace