Upgrade your Internet Experience
United States - English
Argentina (Español)
Australia (English)
Brasil (Português)
Canada (English)
Canada (Français)
中国 (简体中文)
Colombia (Español)
Deutschland (Deutsch)
España (Español)
France (Français)
India (English)
Italia (Italiano)
日本 (日本語)
México (Español)
Perú (Español)
Россия (Pусский)
United Kingdom (English)
United States (English)
More...
Microsoft.com
Welcome
Sign in
.NET Framework Developer Center
Home
Library
Learn
Downloads
Support
Community
Forums
Switch View :
Classic
Lightweight Beta
ScriptFree
Printer Friendly Version
Send
Add Content...
Click to Rate and Give Feedback
Give feedback on this content
MSDN Library
MSDN
Please Wait
MSDN Library
Please Wait
.NET Development
Please Wait
.NET Framework 3.5
Please Wait
.NET Framework Class Library
Please Wait
System.IO Namespace
Please Wait
Path Class
Please Wait
Path Methods
Please Wait
Collapse All
Expand All
Members Filter
Include Protected Members
Include Inherited Members
Frameworks Filter
Include .NET Framework Members
Include .NET Compact Framework Members
Include XNA Framework Members
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5
Other versions are also available for the following:
Microsoft Visual Studio 2003/.NET Framework 1.1
Microsoft Visual Studio 2005/.NET Framework 2.0
.NET Framework 3.0
Microsoft Silverlight 3
Microsoft Visual Studio 2010/.NET Framework 4.0
.NET Framework Class Library
Path Methods
The
Path
type exposes the following members.
Methods
Name
Description
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
See Also
Reference
Path Class
System.IO Namespace
Tags
:
Add a tag
Add
Cancel
Flag as
ContentBug
Community Content
Add new content
Annotations
|
Edit
Tags
:
Add a tag
Add
Cancel
Flag as
ContentBug
© 2009 Microsoft Corporation. All rights reserved.
Terms of Use
|
Trademarks
|
Privacy Statement