共用方式為


StatisticEvents.GetEventSelection 方法

Returns the currently selected event notifications.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public Function GetEventSelection As ObjectEventSet
'用途
Dim instance As StatisticEvents 
Dim returnValue As ObjectEventSet 

returnValue = instance.GetEventSelection()
public ObjectEventSet GetEventSelection()
public:
ObjectEventSet^ GetEventSelection()
member GetEventSelection : unit -> ObjectEventSet
public function GetEventSelection() : ObjectEventSet

傳回值

型別:Microsoft.SqlServer.Management.Smo.ObjectEventSet
A ObjectEventSet object that specifies the set of statistic counter events.

範例

處理 SMO 事件

請參閱

參考

StatisticEvents 類別

Microsoft.SqlServer.Management.Smo 命名空間