AssemblyReferencesEventsClass Sınıf
Olayları temsil References özelliği, bir VSWebSite nesne.Use AssemblyReferencesEvents nesne elde AssemblyReferencesEvents özelliği, bu sınıfın işlevselliğine erişmelerine izin.Bu sınıftan örneğini değil.
Devralma Hiyerarşisi
Object
VsWebSite.AssemblyReferencesEventsClass
Ad alanı: VsWebSite
Derleme: VsWebSite.Interop (VsWebSite.Interop.dll içinde)
Sözdizimi
'Bildirim
<GuidAttribute("F11526E7-4102-4070-9B60-BD4F5CD3006B")> _
<ClassInterfaceAttribute()> _
Public Class AssemblyReferencesEventsClass _
Implements _AssemblyReferencesEvents, AssemblyReferencesEvents, _dispAssemblyReferencesEvents_Event
[GuidAttribute("F11526E7-4102-4070-9B60-BD4F5CD3006B")]
[ClassInterfaceAttribute()]
public class AssemblyReferencesEventsClass : _AssemblyReferencesEvents,
AssemblyReferencesEvents, _dispAssemblyReferencesEvents_Event
[GuidAttribute(L"F11526E7-4102-4070-9B60-BD4F5CD3006B")]
[ClassInterfaceAttribute()]
public ref class AssemblyReferencesEventsClass : _AssemblyReferencesEvents,
AssemblyReferencesEvents, _dispAssemblyReferencesEvents_Event
[<GuidAttribute("F11526E7-4102-4070-9B60-BD4F5CD3006B")>]
[<ClassInterfaceAttribute()>]
type AssemblyReferencesEventsClass =
class
interface _AssemblyReferencesEvents
interface AssemblyReferencesEvents
interface _dispAssemblyReferencesEvents_Event
end
public class AssemblyReferencesEventsClass implements _AssemblyReferencesEvents, AssemblyReferencesEvents, _dispAssemblyReferencesEvents_Event
AssemblyReferencesEventsClass türü aşağıdaki üyeleri ortaya koyar.
Oluşturucular
Ad | Açıklama | |
---|---|---|
![]() |
AssemblyReferencesEventsClass | Altyapı. Yalnızca dahili kullanım için.Bu sınıf tarafından sağlanan işlevlere erişir AssemblyReferencesEvents.Bu sınıftan örneğini değil. |
Üst
Yöntemler
Ad | Açıklama | |
---|---|---|
![]() |
add_AssemblyReferenceAdded | Altyapı. Bu yöntem .NET Framework alt yapısını destekler ve kodunuz tarafından doğrudan kullanılması için hedeflenmemiştir. |
![]() |
add_AssemblyReferenceRemoved | Altyapı. Bu yöntem .NET Framework alt yapısını destekler ve kodunuz tarafından doğrudan kullanılması için hedeflenmemiştir. |
![]() |
Equals | Determines whether the specified object is equal to the current object. (Object kaynağından devralındı.) |
![]() |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Object kaynağından devralındı.) |
![]() |
GetHashCode | Serves as the default hash function. (Object kaynağından devralındı.) |
![]() |
GetType | Gets the Type of the current instance. (Object kaynağından devralındı.) |
![]() |
MemberwiseClone | Creates a shallow copy of the current Object. (Object kaynağından devralındı.) |
![]() |
remove_AssemblyReferenceAdded | Altyapı. Bu yöntem .NET Framework alt yapısını destekler ve kodunuz tarafından doğrudan kullanılması için hedeflenmemiştir. |
![]() |
remove_AssemblyReferenceRemoved | Altyapı. Bu yöntem .NET Framework alt yapısını destekler ve kodunuz tarafından doğrudan kullanılması için hedeflenmemiştir. |
![]() |
ToString | Returns a string that represents the current object. (Object kaynağından devralındı.) |
Üst
Olaylar
Ad | Açıklama | |
---|---|---|
![]() |
AssemblyReferenceAdded | Bir Web sitesindeki bir derleme başvurusu eklenen veya değiştirilen her gerçekleşir. |
![]() |
AssemblyReferenceRemoved | Bir Web sitesindeki bir derleme başvurusu kaldırılan veya değiştirilen her gerçekleşir. |
Üst
Notlar
Bu sınıf üzerinden erişilen AssemblyReferencesEvents karşı alınan arabirimini AssemblyReferencesEvents özelliği.
[!NOT]
Bu sınıf tarafından sağlanan işlevselliği, Visual Studio 2005 ile başlayan Visual Studio sürümlerinde kullanılabilir.Visual Web Developer Express Edition'da kullanılamaz.
Örnekler
Makro kodunu aşağıdaki örnek geçerli bir başvuru oluşturulması gösterilmiştir VSWebSite nesnesi üzerinden geliştirme araçları Extensibility (dte) nesnesi ve bir olaya abone olmak nasıl.Bu örnek için daha büyük bir kod örneği bir parçası olan VSWebSiteEvents.
' Initialize the VsWebSite and the Events
Sub InitAssemblyRefsEvents()
' Get a reference to the first Web site
' in the current solution
Dim ws As VsWebSite.VSWebSite = _
DTE.Solution.Projects.Item(1).Object
' Attach the Web site events to module events
AssemblyRefsEvents = _
ws.VSWebSiteEvents.AssemblyReferencesEvents
End Sub
' Declare the event
' The macro IDE requires the attribute
' in order to trap the events
<System.ContextStaticAttribute()> _
Public WithEvents AssemblyRefsEvents As _
VsWebSite.AssemblyReferencesEvents
İş Parçacığı Güvenliği
Bu türün tüm genel statik (Visual Basic'te Shared) üyeleri iş parçacığı açısından güvenlidir. Hiçbir örnek üyesinin iş parçacığı açısından güvenliği garanti edilemez.