Solution3.FullName Propriedade
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
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
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 .