Functions._SplitPath 方法 | |
命名空间:
XSharp.Core
程序集:
XSharp.Core (在 XSharp.Core.dll 中) 版本:2.22 GA
语法 FUNCTION _SplitPath(
cPath AS STRING,
cDrive OUT STRING,
cDir OUT STRING,
cName OUT STRING,
cExt OUT STRING
) AS VOID
public static void _SplitPath(
string cPath,
out string cDrive,
out string cDir,
out string cName,
out string cExt
)
查看代码参数
- cPath
- 类型:String
The path name to break. - cDrive
- 类型:String
The drive letter followed by a colon. - cDir
- 类型:String
The directories, including the trailing slash. Forward slashes and backslashes both may be present in <cPath>. Forward slashes (/) are converted to backslashes (\). - cName
- 类型:String
The file name, without the extension. - cExt
- 类型:String
The extension, including the leading period.
返回值
类型:
返回值
类型:
备注 备注
SplitPath() 将路径名拆分为其组件并将结果存储在提供的参数中。
提供的参数必须有足够的空间来容纳拆分组件的最大可能大小。
如果路径名中缺少任何组件,则相应的参数将被截断为 0 长度。
参见