Aracılığıyla paylaş


WebReferencesEvents Arabirim

Olayları temsil WebReferences özelliği, bir VSWebSite. Bu nesne tarafından sağlanan işlevselliği erişmek için kullanmak WebReferencesEventsClass.

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

Sözdizimi

'Bildirim
<GuidAttribute("63FE9F71-D793-435E-9F80-FD4082CA1444")> _
Public Interface WebReferencesEvents _
    Inherits _WebReferencesEvents, _dispWebReferencesEvents_Event
[GuidAttribute("63FE9F71-D793-435E-9F80-FD4082CA1444")]
public interface WebReferencesEvents : _WebReferencesEvents, 
    _dispWebReferencesEvents_Event
[GuidAttribute(L"63FE9F71-D793-435E-9F80-FD4082CA1444")]
public interface class WebReferencesEvents : _WebReferencesEvents, 
    _dispWebReferencesEvents_Event
[<GuidAttribute("63FE9F71-D793-435E-9F80-FD4082CA1444")>]
type WebReferencesEvents =  
    interface
        interface _WebReferencesEvents
        interface _dispWebReferencesEvents_Event
    end
public interface WebReferencesEvents extends _WebReferencesEvents, _dispWebReferencesEvents_Event

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

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. (_dispWebReferencesEvents_Event kaynağından devralındı.)
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. (_dispWebReferencesEvents_Event kaynağından devralındı.)
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. (_dispWebReferencesEvents_Event 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. (_dispWebReferencesEvents_Event kaynağından devralındı.)
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. (_dispWebReferencesEvents_Event kaynağından devralındı.)
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. (_dispWebReferencesEvents_Event kaynağından devralındı.)

Üst

Olaylar

  Ad Açıklama
Genel olay WebReferenceAdded Altyapı. Bu olay destekler.net Framework altyapısını ve doğrudan sizin kodunuzdan kullanılmak üzere tasarlanmamıştır. (_dispWebReferencesEvents_Event kaynağından devralındı.)
Genel olay WebReferenceChanged Altyapı. Bu olay destekler.net Framework altyapısını ve doğrudan sizin kodunuzdan kullanılmak üzere tasarlanmamıştır. (_dispWebReferencesEvents_Event kaynağından devralındı.)
Genel olay WebReferenceRemoved Altyapı. Bu olay destekler.net Framework altyapısını ve doğrudan sizin kodunuzdan kullanılmak üzere tasarlanmamıştır. (_dispWebReferencesEvents_Event kaynağından devralındı.)

Üst

Açıklamalar

Bu arabirime WebReferencesEventsClass arasında edindiğiniz 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 nesne geliştirme araçları Extensibility (dte) nesnesi aracılığıyla ve nasıl abone olmak için bir Web Başvurusu olay. 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

Ayrıca bkz.

Başvuru

VsWebSite Ad Alanı

DTE

VSWebSite

VSWebSiteEvents

VSWebSiteEvents

WebReferencesEvents

WebReferencesEventsClass

Diğer Kaynaklar

Başvuru Otomasyon derlemeler ve DTE2 nesne

Nasıl Yapılır: Makro, Olaylar işleme