Document.FullName Свойство
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Возвращает полный путь и имя файла объекта.
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.