共用方式為


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

適用於