Solution3.FullName Свойство
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Возвращает полный путь и имя файла объекта.
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
Значение свойства
Получает строку, представляющую полный путь к файлу объекта и имя этого файла.
Реализации
- Атрибуты
Примеры
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);
}
}
Комментарии
FullNameСвойство известно как FileName свойство в некоторых версиях Visual Studio .