Document.FullName (Propiedad)

Actualización: noviembre 2007

Obtiene la ruta de acceso completa y el nombre de archivo del objeto.

Espacio de nombres:  EnvDTE
Ensamblado:  EnvDTE (en EnvDTE.dll)

Sintaxis

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

Valor de propiedad

Tipo: System.String

Una cadena que representa la ruta de acceso completa y el nombre del archivo del objeto.

Comentarios

La propiedad FullName se denomina FileName en algunas versiones de Visual Studio.

Ejemplos

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

Permisos

Vea también

Referencia

Document (Interfaz)

Document (Miembros)

EnvDTE (Espacio de nombres)