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 | |
---|---|---|
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 | |
---|---|---|
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. | |
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. | |
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. | |
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. | |
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_WebServiceAdded | Altyapı. Bu yöntem .NET Framework alt yapısını destekler ve kodunuz tarafından doğrudan kullanılması için hedeflenmemiştir. | |
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. | |
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. | |
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. | |
ToString | Returns a string that represents the current object. (Object kaynağından devralındı.) |
Üst
Olaylar
Ad | Açıklama | |
---|---|---|
WebServiceAdded | Bir Web hizmeti eklendiğinde gerçekleşir WebServicesEvents özelliği, bir VSWebSiteEvents nesne. | |
WebServiceChanged | Web Hizmetleri, Web sitesi projenin koleksiyondaki öğe değiştiğinde gerçekleşir. | |
WebServiceRemoved | Web Hizmetleri Web sitesi projenin topluluktan bir öğeyi kaldırıldığında gerçekleşir. | |
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.