مشاركة عبر


WebReferencesEvents الواجهة

يمثل الأحداث ل WebReferencesخاصية VSWebSite. استخدم هذا كائن الوصول إلى الوظيفة التي يوفرها WebReferencesEventsClass.

مساحة الاسم:  VsWebSite
التجميع:  VsWebSite.Interop (في VsWebSite.Interop.dll)

بناء الجملة

'إقرار
<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

ملاحظات

Th هو الواجهة إلى WebReferencesEventsClassهو تم الحصول عليه من WebReferencesEventsخاصية.

ملاحظة

الوظيفة التي يوفرها th هو الفئة هو متوفرة في إصدارات Studio Vهوual بدءاً من Vهوual Studio 2005. هو غير متوفرة في Vهوual ويب المطور Express Edition.

أمثلة

مثال التعليمة البرمجية الماكرو التالي يوضح كيفية إنشاء مرجع إلى الحالي VSWebSiteكائن من خلال الامتداد أدوات تطوير (DTE) كائن وكيفية الاشتراك في أحد الأحداث مرجع ويب. Th هو عينة هو جزءا من نموذج تعليمات برمجية بقعة صغيرة ل 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

راجع أيضًَا

المرجع

WebReferencesEvents الأعضاء

VsWebSite مساحة الاسم

DTE

VSWebSite

VSWebSiteEvents

VSWebSiteEvents

WebReferencesEvents

WebReferencesEventsClass

موارد أخرى

التجميعات التنفيذ التلقائي المرجعي وكائن DTE2

كيفية القيام بما يلي: أحداث مؤشر في ماكرو