OpenNETCF Smart Device Framework 2.2
Gets the path to the system special folder identified by the specified enumeration.

Namespace:  OpenNETCF
Assembly:  OpenNETCF (in OpenNETCF)
Version: 2.2.0.0

Syntax

C#
public static string GetFolderPath(
	Environment2..::.SpecialFolder folder
)
Visual Basic (Declaration)
Public Shared Function GetFolderPath ( _
	folder As Environment2..::.SpecialFolder _
) As String
Visual Basic (Usage)
Dim folder As Environment2..::.SpecialFolder
Dim returnValue As String

returnValue = Environment2.GetFolderPath(folder)
Visual C++
public:
static String^ GetFolderPath(
	Environment2..::.SpecialFolder folder
)
J#
public static String GetFolderPath(
	Environment2..::.SpecialFolder folder
)
JScript
public static function GetFolderPath(
	folder : Environment2..::.SpecialFolder
) : String

Parameters

folder
Type: OpenNETCF..::.Environment2..::.SpecialFolder
An enumerated constant that identifies a system special folder.

Return Value

The path to the specified system special folder, if that folder physically exists on your computer; otherwise, the empty string (""). A folder will not physically exist if the operating system did not create it, the existing folder was deleted, or the folder is a virtual directory, such as My Computer, which does not correspond to a physical path.

See Also