共用方式為


ViewEvents.GetEventSelection 方法

Returns the currently selected event notifications.

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

語法

'宣告
Public Function GetEventSelection As ViewEventSet
'用途
Dim instance As ViewEvents 
Dim returnValue As ViewEventSet 

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

傳回值

型別:Microsoft.SqlServer.Management.Smo.ViewEventSet
A ViewEventSet object that specifies the set of view events.

範例

處理 SMO 事件

請參閱

參考

ViewEvents 類別

Microsoft.SqlServer.Management.Smo 命名空間