WebEventProvider.ProcessEvent(WebBaseEvent) Yöntem

Tanım

Sağlayıcıya geçirilen olayı işler.

public:
 abstract void ProcessEvent(System::Web::Management::WebBaseEvent ^ raisedEvent);
public abstract void ProcessEvent(System.Web.Management.WebBaseEvent raisedEvent);
abstract member ProcessEvent : System.Web.Management.WebBaseEvent -> unit
Public MustOverride Sub ProcessEvent (raisedEvent As WebBaseEvent)

Parametreler

raisedEvent
WebBaseEvent

İşlenmek WebBaseEvent üzere nesne.

Örnekler

Aşağıdaki kod örneğinde yönteminin nasıl uygulandığı gösterilmektedir ProcessEvent . Bu yöntem, olayın özelleştirilmiş dize gösterimini belirli bir günlük dosyasına ekler.


// Process the event that has been raised.
public override void ProcessEvent(WebBaseEvent raisedEvent)
{ 
    if (msgCounter < maxMsgNumber)
    {
        // Buffer the event information.
        msgBuffer.Enqueue(raisedEvent);
        // Increment the message counter.
        msgCounter += 1;
    }
    else
    {
        // Flush the buffer.
        Flush();
    }
}
' Process the event that has been raised.
Public Overrides Sub ProcessEvent( _
ByVal raisedEvent As WebBaseEvent)

    If msgCounter < maxMsgNumber Then
        ' Buffer the event information.
        msgBuffer.Enqueue(raisedEvent)
        ' Increment the message counter.
        msgCounter += 1
    Else
        ' Flush the buffer.
        Flush()
    End If

End Sub

Açıklamalar

Bu, olayı işlemeye başlamak için sistem durumu izleme çağrılarını ASP.NET yöntemidir.

Şunlara uygulanır