Document.FullName Property

Gets the full path and name of the object's file.

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

Syntax

'Declaration
ReadOnly Property FullName As String
'Usage
Dim instance As Document 
Dim value As String 

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

Property Value

Type: System.String
A string representing the full path and name of the object's file.

Remarks

The FullName property is known as the FileName property in some versions of Visual Studio.

Examples

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 Security

See Also

Reference

Document Interface

Document Members

EnvDTE Namespace