Solution3.Count Özellik
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Çözümdeki projelerin sayısını gösteren bir değer alır.
public:
property int Count { int get(); };
public:
property int Count { int get(); };
[System.Runtime.InteropServices.DispId(12)]
public int Count { [System.Runtime.InteropServices.DispId(12)] get; }
[<System.Runtime.InteropServices.DispId(12)>]
[<get: System.Runtime.InteropServices.DispId(12)>]
member this.Count : int
Public ReadOnly Property Count As Integer
Özellik Değeri
Çözümdeki proje sayısı.
Uygulamalar
- Öznitelikler
Örnekler
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 solution 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);
}
}