Dictionary.Path 属性

定义

返回指定对象的磁盘或 Web 路径。

public:
 property System::String ^ Path { System::String ^ get(); };
public string Path { get; }
member this.Path : string
Public ReadOnly Property Path As String

属性值

注解

路径中不包括尾随字符 — — 例如,"C:\MSOffice"或"http://MyServer"。 PathSeparator使用 属性添加分隔文件夹和驱动器号的字符。 Name使用 属性可返回不带路径的文件名。

注释 可以使用 PathSeparator 属性生成 Web 地址,即使它们包含 (/) 正斜杠, PathSeparator 属性默认为反斜杠 (\) 。

适用于