Aracılığıyla paylaş


WebReferencesEventsClass Sınıf

Olayları temsil WebReferences özelliği, bir VSWebSite.Use WebReferencesEvents nesne elde WebReferencesEvents ö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.WebReferencesEventsClass

Ad alanı:  VsWebSite
Derleme:  VsWebSite.Interop (VsWebSite.Interop.dll içinde)

Sözdizimi

'Bildirim
<ClassInterfaceAttribute()> _
<GuidAttribute("83121F90-51F7-452A-AF12-1EFB69B735D3")> _
Public Class WebReferencesEventsClass _
    Implements _WebReferencesEvents, WebReferencesEvents, _dispWebReferencesEvents_Event
[ClassInterfaceAttribute()]
[GuidAttribute("83121F90-51F7-452A-AF12-1EFB69B735D3")]
public class WebReferencesEventsClass : _WebReferencesEvents, 
    WebReferencesEvents, _dispWebReferencesEvents_Event
[ClassInterfaceAttribute()]
[GuidAttribute(L"83121F90-51F7-452A-AF12-1EFB69B735D3")]
public ref class WebReferencesEventsClass : _WebReferencesEvents, 
    WebReferencesEvents, _dispWebReferencesEvents_Event
[<ClassInterfaceAttribute()>]
[<GuidAttribute("83121F90-51F7-452A-AF12-1EFB69B735D3")>]
type WebReferencesEventsClass =  
    class 
        interface _WebReferencesEvents 
        interface WebReferencesEvents 
        interface _dispWebReferencesEvents_Event 
    end
public class WebReferencesEventsClass implements _WebReferencesEvents, WebReferencesEvents, _dispWebReferencesEvents_Event

WebReferencesEventsClass türü aşağıdaki üyeleri ortaya koyar.

Oluşturucular

  Ad Açıklama
Genel yöntem WebReferencesEventsClass Altyapı. Yalnızca dahili kullanım için.Bu sınıf tarafından sağlanan işlevlere erişir WebReferencesEvents.Bu sınıftan örneğini değil.

Üst

Yöntemler

  Ad Açıklama
Genel yöntem add_WebReferenceAdded Altyapı. Bu yöntem .NET Framework alt yapısını destekler ve kodunuz tarafından doğrudan kullanılması için hedeflenmemiştir.
Genel yöntem add_WebReferenceChanged Altyapı. Bu yöntem .NET Framework alt yapısını destekler ve kodunuz tarafından doğrudan kullanılması için hedeflenmemiştir.
Genel yöntem add_WebReferenceRemoved Altyapı. Bu yöntem .NET Framework alt yapısını destekler ve kodunuz tarafından doğrudan kullanılması için hedeflenmemiştir.
Genel yöntem Equals Determines whether the specified object is equal to the current object. (Object kaynağından devralındı.)
Korumalı yöntem 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ı.)
Genel yöntem GetHashCode Serves as the default hash function. (Object kaynağından devralındı.)
Genel yöntem GetType Gets the Type of the current instance. (Object kaynağından devralındı.)
Korumalı yöntem MemberwiseClone Creates a shallow copy of the current Object. (Object kaynağından devralındı.)
Genel yöntem remove_WebReferenceAdded Altyapı. Bu yöntem .NET Framework alt yapısını destekler ve kodunuz tarafından doğrudan kullanılması için hedeflenmemiştir.
Genel yöntem remove_WebReferenceChanged Altyapı. Bu yöntem .NET Framework alt yapısını destekler ve kodunuz tarafından doğrudan kullanılması için hedeflenmemiştir.
Genel yöntem remove_WebReferenceRemoved Altyapı. Bu yöntem .NET Framework alt yapısını destekler ve kodunuz tarafından doğrudan kullanılması için hedeflenmemiştir.
Genel yöntem ToString Returns a string that represents the current object. (Object kaynağından devralındı.)

Üst

Olaylar

  Ad Açıklama
Genel olay WebReferenceAdded Bir Web baþvurusu eklendiğinde gerçekleşir WebReferencesEvents özelliği, bir VSWebSiteEvents nesne.
Genel olay WebReferenceChanged Bir Web baþvurusu gösterilen oluşur WebReferencesEvents özelliği, bir VSWebSiteEvents nesne değişti.
Genel olay WebReferenceRemoved Bir Web baþvurusu alanından çıkarıldığında gerçekleşir WebServicesEvents özelliği, bir VSWebSiteEvents nesne.

Üst

Notlar

Bu sınıf üzerinden erişilen WebReferencesEvents karşı alınan arabirim WebReferencesEvents ö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 Development Tools Extensibility (DTE2) ve nasıl bir Web başvurusu olayına abone olun.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 WebRefsEvents As _
    VsWebSite.WebReferencesEvents

İş 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.

Ayrıca bkz.

Başvuru

VsWebSite Ad Alanı

DTE

VSWebSite

VSWebSiteEvents

VSWebSiteEvents

WebReferencesEvents

WebReferencesEvents

Diğer Kaynaklar

Otomasyon Derlemelerine ve DTE2 Nesnesine Başvurma

Nasıl yapılır: bir makroda olayları işlemek