WebBaseEvent.EventSource Свойство

Определение

Получает объект, порождающий событие.

public:
 property System::Object ^ EventSource { System::Object ^ get(); };
public object EventSource { get; }
member this.EventSource : obj
Public ReadOnly Property EventSource As Object

Значение свойства

Объект, вызвавший событие.

Примеры

В следующем примере кода показано, как получить EventSource значение .

// Gets the event source.
public Object GetEventSource()
{
    // Get the event source.
    Object source = this.EventSource;
    return source;
}
' Gets the event source.
Public Function GetEventSource() As [Object]
    ' Get the event source.
    Dim [source] As [Object] = Me.EventSource
    Return [source]

End Function 'GetEventSource

Применяется к