Freigeben über


Document.FullName-Eigenschaft

Aktualisiert: November 2007

Ruft den vollständigen Pfad und Namen der Objektdatei ab.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Syntax

ReadOnly Property FullName As String

Dim instance As Document
Dim value As String

value = instance.FullName
string FullName { get; }
property String^ FullName {
    String^ get ();
}
function get FullName () : String

Eigenschaftenwert

Typ: System.String

Eine Zeichenfolge, die den vollständigen Pfad und Namen der Objektdatei darstellt.

Hinweise

Die FullName-Eigenschaft wird in einigen Versionen von Visual Studio als FileName-Eigenschaft bezeichnet.

Beispiele

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);
}

Berechtigungen

Siehe auch

Referenz

Document-Schnittstelle

Document-Member

EnvDTE-Namespace