Document.FullName 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取对象文件的完整路径和名称。
public:
property System::String ^ FullName { System::String ^ get(); };
public:
property Platform::String ^ FullName { Platform::String ^ get(); };
[System.Runtime.InteropServices.DispId(103)]
public string FullName { [System.Runtime.InteropServices.DispId(103)] get; }
[<System.Runtime.InteropServices.DispId(103)>]
[<get: System.Runtime.InteropServices.DispId(103)>]
member this.FullName : string
Public ReadOnly Property FullName As String
属性值
一个表示对象文件的完整路径和名称的字符串。
- 属性
示例
Sub FullNameExample(ByVal dte As DTE2)
dte.ItemOperations.NewFile()
Dim doc As Document = dte.ActiveDocument
' Display the new document's temporary location.
MsgBox(doc.ActiveWindow.Caption & " is stored at " & doc.FullName)
End Sub
public void FullNameExample(DTE2 dte)
{
dte.ItemOperations.NewFile(@"General\Text File", "",
Constants.vsViewKindPrimary);
Document doc = dte.ActiveDocument;
// Display the new document's temporary location.
MessageBox.Show(doc.ActiveWindow.Caption + " is stored at " +
doc.FullName);
}
注解
FullName FileName 在某些版本的 Visual Studio 中,属性称为属性。