Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
System.IO Namespace
Path Class
 Path Members
Members FilterMembers Filter
Frameworks FilterFrameworks Filter
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
Path Members

Updated: November 2007

Performs operations on String instances that contain file or directory path information. These operations are performed in a cross-platform manner.

The Path type exposes the following members.

  NameDescription
ChangeExtension Changes the extension of a path string.
Combine Combines two path strings.
GetDirectoryName Returns the directory information for the specified path string.
GetExtension Returns the extension of the specified path string.
GetFileName Returns the file name and extension of the specified path string.
GetFileNameWithoutExtension Returns the file name of the specified path string without the extension.
GetFullPath Returns the absolute path for the specified path string.
GetInvalidFileNameChars Gets an array containing the characters that are not allowed in file names.
GetInvalidPathChars Gets an array containing the characters that are not allowed in path names.
GetPathRoot Gets the root directory information of the specified path.
GetRandomFileName Returns a random folder name or file name.
GetTempFileName Creates a uniquely named, zero-byte temporary file on disk and returns the full path of that file.
GetTempPath Returns the path of the current system's temporary folder.
HasExtension Determines whether a path includes a file name extension.
IsPathRooted Gets a value indicating whether the specified path string contains absolute or relative path information.
Top
  NameDescription
AltDirectorySeparatorChar Provides a platform-specific alternate character used to separate directory levels in a path string that reflects a hierarchical file system organization.
DirectorySeparatorChar Provides a platform-specific character used to separate directory levels in a path string that reflects a hierarchical file system organization.
InvalidPathChars Obsolete. Provides a platform-specific array of characters that cannot be specified in path string arguments passed to members of the Path class.
PathSeparator A platform-specific separator character used to separate path strings in environment variables.
VolumeSeparatorChar Provides a platform-specific volume separator character.
Top
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker