Solution3.FullName Propriedade

Definição

Obtém o caminho completo e o nome do arquivo do objeto.

public:
 property System::String ^ FullName { System::String ^ get(); };
public:
 property Platform::String ^ FullName { Platform::String ^ get(); };
[System.Runtime.InteropServices.DispId(28)]
public string FullName { [System.Runtime.InteropServices.DispId(28)] get; }
[<System.Runtime.InteropServices.DispId(28)>]
[<get: System.Runtime.InteropServices.DispId(28)>]
member this.FullName : string
Public ReadOnly Property FullName As String

Valor da propriedade

String

Obtém uma cadeia de caracteres que é o caminho completo e o nome do arquivo do objeto.

Implementações

Atributos

Exemplos

Sub SolutionCountExample(ByVal dte As DTE2)  
    ' Counts the projects in a solution.  
    ' Open a solution in Visual Studio before running this  
    ' example.  
   Try  
       Dim soln As Solution3 = CType(_applicationObject.Solution, _  
       Solution3)  
        ' List the number of projects.  
        MsgBox("Number of projects in" & soln.FullName & " is: " _  
        & vbCr & soln.Count)  
    Catch ex As System.Exception  
        MsgBox(ex.ToString)  
    End Try  
End Sub  
using System.Windows.Forms;  
public void SolutionCount(DTE2 dte)  
{  
    // Count the projects in a solution.  
    // Open a soultion in Visual Studio before running this  
    // example.  
    Try  
    {  
        Solution3 soln = (Solution3)_applicationObject.Solution;  
        // List the number of projects.  
        MessageBox.Show("Number of projects in" + soln.FullName   
          + " is: " + "\n" + soln.Count);  
    }  
    catch(SystemException ex)  
    {  
        MessageBox.Show("ERROR: " + ex);  
    }  
}  

Comentários

A FullName propriedade é conhecida como a FileName propriedade em algumas versões do Visual Studio .

Aplica-se a