_Document.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使用 属性添加分隔文件夹和驱动器号的字符。 即使 PathSeparator 属性包含正斜杠 (/) , 并且 PathSeparator 属性默认为反斜杠 (\) ,也可以使用 PathSeparator 属性来生成 Web 地址。

Name使用 属性返回不带路径的文件名,并使用 FullName 属性返回文件名和路径。

适用于