Click or drag to resize
Path Class
Performs operations on String instances that contain file or directory path information. These operations are performed in a cross-platform manner.
Inheritance Hierarchy
SystemObject
  System.IOPath

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public static class Path

The Path type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCombine(String)
Combines an array of strings into a path.
Public methodStatic memberCombine(String, String)
Combines two strings into a path.
Public methodStatic memberCombine(String, String, String)
Combines three strings into a path.
Public methodStatic memberCombine(String, String, String, String)
Combines four strings into a path.
Public methodStatic memberGetDirectoryName
Returns the directory information for the specified path string.
Public methodStatic memberGetExtension
Returns the extension of the specified path string.
Public methodStatic memberGetFileName
Returns the file name and extension of the specified path string.
Public methodStatic memberGetFileNameWithoutExtension
Returns the file name of the specified path string without the extension.
Public methodStatic memberGetFullPath
Returns the absolute path for the specified path string.
Public methodStatic memberGetInvalidFileNameChars
Gets an array containing the characters that are not allowed in file names.
Public methodStatic memberGetInvalidPathChars
Gets an array containing the characters that are not allowed in path names.
Public methodStatic memberIsPathRooted
Gets a value indicating whether the specified path string contains a root.
Top
Fields
  NameDescription
Public fieldStatic memberAltDirectorySeparatorChar
Provides a platform-specific alternate character used to separate directory levels in a path string that reflects a hierarchical file system organization.
Public fieldStatic memberDirectorySeparatorChar
Provides a platform-specific character used to separate directory levels in a path string that reflects a hierarchical file system organization.
Public fieldStatic memberInvalidPathChars
Provides a platform-specific array of characters that cannot be specified in path string arguments passed to members of the Path class.
Public fieldStatic memberPathSeparator
A platform-specific separator character used to separate path strings in environment variables.
Public fieldStatic memberVolumeSeparatorChar
Provides a platform-specific volume separator character.
Top
See Also