Export (0) Print
Expand All

Path Methods

The methods of the Path class are listed here. For a complete list of Path class members, see the Path Members topic.

Public Methods

public methodstatic (Shared in Visual Basic)ChangeExtension

Supported by the .NET Compact Framework.

Changes the extension of a path string.
public methodstatic (Shared in Visual Basic)Combine

Supported by the .NET Compact Framework.

Combines two path strings.
public methodstatic (Shared in Visual Basic)GetDirectoryName

Supported by the .NET Compact Framework.

Returns the directory information for the specified path string.
public methodstatic (Shared in Visual Basic)GetExtension

Supported by the .NET Compact Framework.

Returns the extension of the specified path string.
public methodstatic (Shared in Visual Basic)GetFileName

Supported by the .NET Compact Framework.

Returns the file name and extension of the specified path string.
public methodstatic (Shared in Visual Basic)GetFileNameWithoutExtension

Supported by the .NET Compact Framework.

Returns the file name of the specified path string without the extension.
public methodstatic (Shared in Visual Basic)GetFullPath

Supported by the .NET Compact Framework.

Returns the absolute path for the specified path string.
public methodstatic (Shared in Visual Basic)GetPathRoot

Supported by the .NET Compact Framework.

Gets the root directory information of the specified path.
public methodstatic (Shared in Visual Basic)GetTempFileName

Supported by the .NET Compact Framework.

Returns a uniquely named zero-byte temporary file on disk and returns the full path to that file.
public methodstatic (Shared in Visual Basic)GetTempPath

Supported by the .NET Compact Framework.

Returns the path of the current system's temporary folder.
public methodstatic (Shared in Visual Basic)HasExtension

Supported by the .NET Compact Framework.

Determines whether a path includes a file name extension.
public methodstatic (Shared in Visual Basic)IsPathRooted

Supported by the .NET Compact Framework.

Gets a value indicating whether the specified path string contains absolute or relative path information.

See Also

Path Class | System.IO Namespace

Show:
© 2014 Microsoft