Aracılığıyla paylaş


WebServicesEventsClass Sınıf

Olayları temsil WebServices özelliği, bir VSWebSite nesne.Use WebServicesEvents nesne elde WebServicesEvents ö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.WebServicesEventsClass

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

Sözdizimi

'Bildirim
<ClassInterfaceAttribute()> _
<GuidAttribute("F4DD7750-F662-4430-AB7C-74F9E8EA93BF")> _
Public Class WebServicesEventsClass _
    Implements _WebServicesEvents, WebServicesEvents, _dispWebServicesEvents_Event
[ClassInterfaceAttribute()]
[GuidAttribute("F4DD7750-F662-4430-AB7C-74F9E8EA93BF")]
public class WebServicesEventsClass : _WebServicesEvents, 
    WebServicesEvents, _dispWebServicesEvents_Event
[ClassInterfaceAttribute()]
[GuidAttribute(L"F4DD7750-F662-4430-AB7C-74F9E8EA93BF")]
public ref class WebServicesEventsClass : _WebServicesEvents, 
    WebServicesEvents, _dispWebServicesEvents_Event
[<ClassInterfaceAttribute()>]
[<GuidAttribute("F4DD7750-F662-4430-AB7C-74F9E8EA93BF")>]
type WebServicesEventsClass =  
    class 
        interface _WebServicesEvents 
        interface WebServicesEvents 
        interface _dispWebServicesEvents_Event 
    end
public class WebServicesEventsClass implements _WebServicesEvents, WebServicesEvents, _dispWebServicesEvents_Event

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

Oluşturucular

  Ad Açıklama
Genel yöntem WebServicesEventsClass Altyapı. Bu yöntem .NET Framework alt yapısını destekler ve kodunuz tarafından doğrudan kullanılması için hedeflenmemiştir.Bu sınıftan örneğini değil.

Üst

Yöntemler

  Ad Açıklama
Genel yöntem add_WebServiceAdded 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_WebServiceChanged 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_WebServiceRemoved 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_WebServiceRenamed 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_WebServiceAdded 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_WebServiceChanged 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_WebServiceRemoved 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_WebServiceRenamed 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 WebServiceAdded Bir Web hizmeti eklendiğinde gerçekleşir WebServicesEvents özelliği, bir VSWebSiteEvents nesne.
Genel olay WebServiceChanged Web Hizmetleri, Web sitesi projenin koleksiyondaki öğe değiştiğinde gerçekleşir.
Genel olay WebServiceRemoved Web Hizmetleri Web sitesi projenin topluluktan bir öğeyi kaldırıldığında gerçekleşir.
Genel olay WebServiceRenamed Web Hizmetleri, Web sitesi projenin topluluğu içindeki bir öğeyi yeniden adlandırıldığında oluşur.

Üst

Notlar

Bu sınıf üzerinden erişilen WebServicesEvents karşı alınan arabirim WebServicesEvents ö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) nesne ve nasıl bir olaya 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 WebSvcsEvents As _
    VsWebSite.WebServicesEvents

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

WebServicesEvents

WebServicesEvents

Diğer Kaynaklar

Otomasyon Derlemelerine ve DTE2 Nesnesine Başvurma

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