Document.FullName-Eigenschaft

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

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

Syntax

'Declaration
ReadOnly Property FullName As String
string FullName { get; }
property String^ FullName {
    String^ get ();
}
abstract FullName : string
function get FullName () : String

Eigenschaftswert

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

.NET Framework-Sicherheit

Siehe auch

Referenz

Document Schnittstelle

EnvDTE-Namespace