共用方式為


ViewEventSet 類別

The ViewEventSet object represents a set of view events.

繼承階層

System.Object
  Microsoft.SqlServer.Management.Smo.EventSetBase
    Microsoft.SqlServer.Management.Smo.ViewEventSet

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

語法

'宣告
Public NotInheritable Class ViewEventSet _
    Inherits EventSetBase
'用途
Dim instance As ViewEventSet
public sealed class ViewEventSet : EventSetBase
public ref class ViewEventSet sealed : public EventSetBase
[<SealedAttribute>]
type ViewEventSet =  
    class 
        inherit EventSetBase 
    end
public final class ViewEventSet extends EventSetBase

ViewEventSet 型別公開下列成員。

建構函式

  名稱 說明
公用方法 ViewEventSet() Initializes a new instance of the ViewEventSet class.
公用方法 ViewEventSet(ViewEvent) Initializes a new instance of the ViewEventSet class with a specified event.
公用方法 ViewEventSet(array<ViewEvent[]) Initializes a new instance of the ViewEventSet class with a specified set of events.
公用方法 ViewEventSet(ViewEventSet) Initializes a new instance of the ViewEventSet class with a specified set of events.

上層

屬性

  名稱 說明
公用屬性 AlterFulltextIndex Gets or sets a Boolean property value that specifies whether the event is included in the event set.
公用屬性 AlterIndex Gets or sets a Boolean value that specifies whether the AlterIndex event is included in the event set.
公用屬性 AlterView Gets or sets a Boolean property value that specifies whether the event that occurs when a view is altered is included in the event set.
公用屬性 CreateFulltextIndex Gets or sets a Boolean property value that specifies whether the event is included in the event set
公用屬性 CreateIndex Gets or sets a Boolean property value that specifies whether the event that occurs when an index is created is included in the event set.
公用屬性 CreateSpatialIndex Gets or sets a Boolean property value that specifies whether the event is included in the event set
公用屬性 CreateStatistics Gets or sets a Boolean property value that specifies whether the event that occurs when a statistics counter is created is included in the event set.
公用屬性 CreateXmlIndex Gets or sets a Boolean property value that specifies whether the event that occurs when an XML index is created and included in the event set.
公用屬性 DropFulltextIndex Gets or sets a Boolean property value that specifies whether the event is included in the event set
公用屬性 DropIndex Gets or sets a Boolean property value that specifies whether the event that occurs when an index is dropped is included in the event set.
公用屬性 DropStatistics Gets or sets a Boolean property value that specifies whether the event that occurs when a statistic counter is dropped is included in the event set.
公用屬性 DropView Gets or sets a Boolean property value that specifies whether the event that occurs when a view is dropped is included in the event set.
公用屬性 NumberOfElements Gets or sets a Boolean property value that specifies whether the event that occurs when the number of elements changes is included in the event set. (覆寫 EventSetBase.NumberOfElements。)
受保護的屬性 Storage Gets or sets the bit array for event set storage. (繼承自 EventSetBase。)
公用屬性 UpdateStatistics Gets or sets a Boolean property value that specifies whether the event that occurs when statistics are updated is included in the event set.

上層

方法

  名稱 說明
公用方法 Add(ViewEvent) Adds a ViewEvent object to the ViewEventSet object.
公用方法靜態成員 Add(ViewEventSet, ViewEvent) Adds an event to the event set.
公用方法 Copy Returns a copy of the event set. (覆寫 EventSetBase.Copy()。)
公用方法 Equals (繼承自 Object。)
公用方法 GetHashCode (繼承自 Object。)
公用方法 GetType (繼承自 Object。)
公用方法 Remove Removes an event from the event set.
公用方法靜態成員 Subtract Removes a view event from the event set.
公用方法 ToString Returns a String that represents the ViewEventSet object. (覆寫 Object.ToString()。)

上層

運算子

  名稱 說明
公用運算子靜態成員 Addition Creates a view event set by performing an addition operation on a ViewEvent object and a ViewEventSet object.
公用運算子靜態成員 Subtraction Creates a view event set by performing a subtraction operation on a ViewEvent object and a ViewEventSet object.

上層

備註

SQL Server provides events subscription for all SMO objects that have server event support. The View object has event support for the events that are represented by ViewEventSet properties.

Thread Safety

此型別的任何公用靜態 (在 Microsoft Visual Basic 為共用) 成員具備多執行緒作業安全。並非所有的執行個體成員都是安全執行緒。

範例

處理 SMO 事件

執行緒安全性

這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。

請參閱

參考

Microsoft.SqlServer.Management.Smo 命名空間