VSProject.References Özellik
Alır References proje için koleksiyonu.Salt okunur.
Ad alanı: VSLangProj
Derleme: VSLangProj (VSLangProj.dll içinde)
Sözdizimi
'Bildirim
ReadOnly Property References As References
References References { get; }
property References^ References {
References^ get ();
}
abstract References : References with get
function get References () : References
Özellik Değeri
Tür: VSLangProj.References
A References koleksiyonu içeren Reference , her biri bir başvuru temsil eden nesneler.
Notlar
Harici bir bileşen karşı kod yazmak için projenizin ilk bu bileşen için bir başvuru içermelidir.Bileşenlerini üç tür başvuru yapılabilir:.net derlemeleri, com otomasyon sunucuları ve denetimleri ve bileşenleri açığa çıkaran aynı çözüm içindeki diðer projelerden.
Örnekler
[Visual Basic]
' Macro Editor
' Assuming that the first project in the solution is a Visual Basic or C#
' application, this routine lists the references in the project.
Imports VSLangProj
Sub ListReferences()
' Retrieve the VSProject object.
Dim theVSProject As VSProject = _
CType(DTE.Solution.Projects.Item(1).Object, VSProject)
' Retrieve the references collection.
Dim refs As References = theVSProject.References
' Create a string list of the reference names.
Dim refList As String = ""
Dim aRef As Reference
For Each aRef In refs
refList &= aRef.Identity & ControlChars.CrLf
Next
MsgBox(refList)
End Sub
.NET Framework Güvenliği
- Anında arayanlar için tam güven. Bu üye kısmen güvenilen kodla kullanılamaz. Daha fazla bilgi için bkz. Kısmen Güvenilen Koddan Kitaplıkları Kullanma.