Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Path Members

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

The following tables list the members exposed by the Path type.

  Name Description
Public field Static Supported by the .NET Compact Framework Supported by the XNA Framework AltDirectorySeparatorChar Provides a platform-specific alternate character used to separate directory levels in a path string that reflects a hierarchical file system organization.
Public field Static Supported by the .NET Compact Framework Supported by the XNA Framework DirectorySeparatorChar Provides a platform-specific character used to separate directory levels in a path string that reflects a hierarchical file system organization.
Public field Static Supported by the .NET Compact Framework Supported by the XNA Framework InvalidPathChars Provides a platform-specific array of characters that cannot be specified in path string arguments passed to members of the Path class.
Public field Static Supported by the .NET Compact Framework Supported by the XNA Framework PathSeparator A platform-specific separator character used to separate path strings in environment variables.
Public field Static Supported by the .NET Compact Framework Supported by the XNA Framework VolumeSeparatorChar Provides a platform-specific volume separator character.
Top

  Name Description
Public method Static Supported by the .NET Compact Framework Supported by the XNA Framework ChangeExtension Changes the extension of a path string.
Public method Static Supported by the .NET Compact Framework Supported by the XNA Framework Combine Combines two path strings.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method Static Supported by the .NET Compact Framework Supported by the XNA Framework GetDirectoryName Returns the directory information for the specified path string.
Public method Static Supported by the .NET Compact Framework Supported by the XNA Framework GetExtension Returns the extension of the specified path string.
Public method Static Supported by the .NET Compact Framework Supported by the XNA Framework GetFileName Returns the file name and extension of the specified path string.
Public method Static Supported by the .NET Compact Framework Supported by the XNA Framework GetFileNameWithoutExtension Returns the file name of the specified path string without the extension.
Public method Static Supported by the .NET Compact Framework Supported by the XNA Framework GetFullPath Returns the absolute path for the specified path string.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method Static GetInvalidFileNameChars Gets an array containing the characters that are not allowed in file names.
Public method Static Supported by the .NET Compact Framework Supported by the XNA Framework GetInvalidPathChars Gets an array containing the characters that are not allowed in path names.
Public method Static Supported by the .NET Compact Framework Supported by the XNA Framework GetPathRoot Gets the root directory information of the specified path.
Public method Static GetRandomFileName Returns a random folder name or file name.
Public method Static Supported by the .NET Compact Framework GetTempFileName Creates a uniquely named, zero-byte temporary file on disk and returns the full path of that file.
Public method Static Supported by the .NET Compact Framework GetTempPath Returns the path of the current system's temporary folder.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetType  Gets the Type of the current instance. (inherited from Object)
Public method Static Supported by the .NET Compact Framework Supported by the XNA Framework HasExtension Determines whether a path includes a file name extension.
Public method Static Supported by the .NET Compact Framework Supported by the XNA Framework IsPathRooted Gets a value indicating whether the specified path string contains absolute or relative path information.
Public method Static Supported by the .NET Compact Framework ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework ToString  Returns a String that represents the current Object. (inherited from Object)
Top

Community Additions

Show:
© 2014 Microsoft