请单击以进行评分并提供反馈
MSDN
MSDN Library
.NET 开发
.NET Framework
Path 类
 Path 成员

  开启低带宽视图
Members FilterMembers Filter
Frameworks FilterFrameworks Filter
此页面仅适用于
Microsoft Visual Studio 2008/.NET Framework 3.5

同时提供下列产品的其他版本:
.NET Framework 类库
Path 成员

更新:2007 年 11 月

对包含文件或目录路径信息的 String 实例执行操作。这些操作是以跨平台的方式执行的。

Path 类型公开以下成员。

  名称说明
fctyxbdc.pubmethod(zh-cn,VS.90).giffctyxbdc.static(zh-cn,VS.90).giffctyxbdc.CFW(zh-cn,VS.90).giffctyxbdc.xna(zh-cn,VS.90).gifChangeExtension 更改路径字符串的扩展名。
fctyxbdc.pubmethod(zh-cn,VS.90).giffctyxbdc.static(zh-cn,VS.90).giffctyxbdc.CFW(zh-cn,VS.90).giffctyxbdc.xna(zh-cn,VS.90).gifCombine 合并两个路径字符串。
fctyxbdc.pubmethod(zh-cn,VS.90).giffctyxbdc.static(zh-cn,VS.90).giffctyxbdc.CFW(zh-cn,VS.90).giffctyxbdc.xna(zh-cn,VS.90).gifGetDirectoryName 返回指定路径字符串的目录信息。
fctyxbdc.pubmethod(zh-cn,VS.90).giffctyxbdc.static(zh-cn,VS.90).giffctyxbdc.CFW(zh-cn,VS.90).giffctyxbdc.xna(zh-cn,VS.90).gifGetExtension 返回指定的路径字符串的扩展名。
fctyxbdc.pubmethod(zh-cn,VS.90).giffctyxbdc.static(zh-cn,VS.90).giffctyxbdc.CFW(zh-cn,VS.90).giffctyxbdc.xna(zh-cn,VS.90).gifGetFileName 返回指定路径字符串的文件名和扩展名。
fctyxbdc.pubmethod(zh-cn,VS.90).giffctyxbdc.static(zh-cn,VS.90).giffctyxbdc.CFW(zh-cn,VS.90).giffctyxbdc.xna(zh-cn,VS.90).gifGetFileNameWithoutExtension 返回不具有扩展名的指定路径字符串的文件名。
fctyxbdc.pubmethod(zh-cn,VS.90).giffctyxbdc.static(zh-cn,VS.90).giffctyxbdc.CFW(zh-cn,VS.90).giffctyxbdc.xna(zh-cn,VS.90).gifGetFullPath 返回指定路径字符串的绝对路径。
fctyxbdc.pubmethod(zh-cn,VS.90).giffctyxbdc.static(zh-cn,VS.90).gifGetInvalidFileNameChars 获取包含不允许在文件名中使用的字符的数组。
fctyxbdc.pubmethod(zh-cn,VS.90).giffctyxbdc.static(zh-cn,VS.90).giffctyxbdc.CFW(zh-cn,VS.90).giffctyxbdc.xna(zh-cn,VS.90).gifGetInvalidPathChars 获取包含不允许在路径名中使用的字符的数组。
fctyxbdc.pubmethod(zh-cn,VS.90).giffctyxbdc.static(zh-cn,VS.90).giffctyxbdc.CFW(zh-cn,VS.90).giffctyxbdc.xna(zh-cn,VS.90).gifGetPathRoot 获取指定路径的根目录信息。
fctyxbdc.pubmethod(zh-cn,VS.90).giffctyxbdc.static(zh-cn,VS.90).gifGetRandomFileName 返回随机文件夹名或文件名。
fctyxbdc.pubmethod(zh-cn,VS.90).giffctyxbdc.static(zh-cn,VS.90).giffctyxbdc.CFW(zh-cn,VS.90).gifGetTempFileName 创建磁盘上唯一命名的零字节的临时文件并返回该文件的完整路径。
fctyxbdc.pubmethod(zh-cn,VS.90).giffctyxbdc.static(zh-cn,VS.90).giffctyxbdc.CFW(zh-cn,VS.90).gifGetTempPath 返回当前系统的临时文件夹的路径。
fctyxbdc.pubmethod(zh-cn,VS.90).giffctyxbdc.static(zh-cn,VS.90).giffctyxbdc.CFW(zh-cn,VS.90).giffctyxbdc.xna(zh-cn,VS.90).gifHasExtension 确定路径是否包括文件扩展名。
fctyxbdc.pubmethod(zh-cn,VS.90).giffctyxbdc.static(zh-cn,VS.90).giffctyxbdc.CFW(zh-cn,VS.90).giffctyxbdc.xna(zh-cn,VS.90).gifIsPathRooted 获取一个值,该值指示指定的路径字符串是包含绝对路径信息还是包含相对路径信息。
页首
  名称说明
fctyxbdc.pubfield(zh-cn,VS.90).giffctyxbdc.static(zh-cn,VS.90).giffctyxbdc.CFW(zh-cn,VS.90).giffctyxbdc.xna(zh-cn,VS.90).gifAltDirectorySeparatorChar 提供平台特定的替换字符,该替换字符用于在反映分层文件系统组织的路径字符串中分隔目录级别。
fctyxbdc.pubfield(zh-cn,VS.90).giffctyxbdc.static(zh-cn,VS.90).giffctyxbdc.CFW(zh-cn,VS.90).giffctyxbdc.xna(zh-cn,VS.90).gifDirectorySeparatorChar 提供平台特定的字符,该字符用于在反映分层文件系统组织的路径字符串中分隔目录级别。
fctyxbdc.pubfield(zh-cn,VS.90).giffctyxbdc.static(zh-cn,VS.90).giffctyxbdc.CFW(zh-cn,VS.90).giffctyxbdc.xna(zh-cn,VS.90).gifInvalidPathChars 已过时。 提供平台特定的字符数组,这些字符不能在传递到 Path 类的成员的路径字符串参数中指定。
fctyxbdc.pubfield(zh-cn,VS.90).giffctyxbdc.static(zh-cn,VS.90).giffctyxbdc.CFW(zh-cn,VS.90).giffctyxbdc.xna(zh-cn,VS.90).gifPathSeparator 用于在环境变量中分隔路径字符串的平台特定的分隔符。
fctyxbdc.pubfield(zh-cn,VS.90).giffctyxbdc.static(zh-cn,VS.90).giffctyxbdc.CFW(zh-cn,VS.90).giffctyxbdc.xna(zh-cn,VS.90).gifVolumeSeparatorChar 提供平台特定的卷分隔符。
页首
社区内容   什么是社区内容?
添加新内容 RSS  批注
Processing
© 2009 Microsoft Corporation 版权所有。 保留所有权利  |  商标  |  隐私权声明
Page view tracker