Share via


DatabaseEventSet 類別

The DatabaseEventSet object represents a SQL Server set of database events.

繼承階層

System. . :: . .Object
  Microsoft.SqlServer.Management.Smo. . :: . .EventSetBase
    Microsoft.SqlServer.Management.Smo..::..DatabaseEventSet

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

語法

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

DatabaseEventSet 型別公開下列成員。

建構函式

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

上層

屬性

  名稱 說明
公用屬性 AddRoleMember Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a member is added to a database role in the database.
公用屬性 AddSignature Gets or sets a Boolean property value that specifies whether the event is included in the event set.
公用屬性 AddSignatureSchemaObject Gets or sets a Boolean property value that specifies whether the event is included in the event set.
公用屬性 AlterApplicationRole Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when an application role is altered in the database.
公用屬性 AlterAssembly Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when an assembly is altered in the database.
公用屬性 AlterAsymmetricKey Gets or sets a Boolean property value that specifies whether the event is included in the event set.
公用屬性 AlterAuthorizationDatabase Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when the authorization database is altered.
公用屬性 AlterBrokerPriority Gets or sets a Boolean property value that specifies whether the event is included in the event set.
公用屬性 AlterCertificate Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a certificate is altered in the database.
公用屬性 AlterDatabaseAuditSpecification Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a database audit specification is altered.
公用屬性 AlterDatabaseEncryptionKey Gets or sets a Boolean property value that specifies whether the event is included in the event set.
公用屬性 AlterExtendedProperty Gets or sets a Boolean property value that specifies whether the event is included in the event set.
公用屬性 AlterFulltextCatalog Gets or sets a Boolean property value that specifies whether the event is included in the event set.
公用屬性 AlterFulltextIndex Gets or sets a Boolean property value that specifies whether the event is included in the event set.
公用屬性 AlterFulltextStoplist Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a full-text Search, stop list is altered in the database.
公用屬性 AlterFunction Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a user-defined function is altered in the database.
公用屬性 AlterIndex Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when an index is altered in the database.
公用屬性 AlterMasterKey Gets or sets a Boolean property value that specifies whether the event is included in the event set.
公用屬性 AlterMessageType Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a message type is altered in the database.
公用屬性 AlterPartitionFunction Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a partition function is altered in the database.
公用屬性 AlterPartitionScheme Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a partition scheme is altered in the database.
公用屬性 AlterPlanGuide Gets or sets a Boolean property value that specifies whether the event is included in the event set.
公用屬性 AlterProcedure Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a stored procedure is altered in the database.
公用屬性 AlterQueue Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a Service Broker queue is altered in the database.
公用屬性 AlterRemoteServiceBinding Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a remote service binding is altered in the database.
公用屬性 AlterRole Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a database role is altered in the database.
公用屬性 AlterRoute Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a Service Broker route is altered in the database.
公用屬性 AlterSchema Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a schema is altered in the database.
公用屬性 AlterService Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a Service Broker service is altered in the database.
公用屬性 AlterSymmetricKey Gets or sets a Boolean property value that specifies whether the event is included in the event set.
公用屬性 AlterTable Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a table is altered in the database.
公用屬性 AlterTrigger Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a trigger is altered in the database.
公用屬性 AlterUser Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a database user is altered in the database.
公用屬性 AlterView Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a view is altered in the database.
公用屬性 AlterXmlSchemaCollection Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when an XML schema collection is altered in the database.
公用屬性 BindDefault Gets or sets a Boolean property value that specifies whether the event is included in the event set.
公用屬性 BindRule Gets or sets a Boolean property value that specifies whether the event is included in the event set.
公用屬性 CreateApplicationRole Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when an application role is created in the database.
公用屬性 CreateAssembly Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when an assembly is created in the database.
公用屬性 CreateAsymmetricKey Gets or sets a Boolean property value that specifies whether the event is included in the event set.
公用屬性 CreateBrokerPriority Gets or sets a Boolean property value that specifies whether the event is included in the event set.
公用屬性 CreateCertificate Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a certificate is created in the database.
公用屬性 CreateContract Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a Service Broker contract is created in the database.
公用屬性 CreateDatabaseAuditSpecification Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a database audit specification is created in the database.
公用屬性 CreateDatabaseEncryptionKey Gets or sets a Boolean property value that specifies whether the event is included in the event set.
公用屬性 CreateDefault Gets or sets a Boolean property value that specifies whether the event is included in the event set.
公用屬性 CreateEventNotification Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when an event notification is created in the database.
公用屬性 CreateExtendedProperty Gets or sets a Boolean property value that specifies whether the event is included in the event set.
公用屬性 CreateFulltextCatalog Gets or sets a Boolean property value that specifies whether the event 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.
公用屬性 CreateFulltextStoplist Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a full-text Search, stop list is created in the database.
公用屬性 CreateFunction Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a user-defined function is created in the database.
公用屬性 CreateIndex Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when an index is created in the database.
公用屬性 CreateMasterKey Gets or sets a Boolean property value that specifies whether the event is included in the event set.
公用屬性 CreateMessageType Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a message type is created in the database.
公用屬性 CreatePartitionFunction Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a partition function is created in the database.
公用屬性 CreatePartitionScheme Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a partition scheme is created in the database.
公用屬性 CreatePlanGuide Gets or sets a Boolean property value that specifies whether the event is included in the event set.
公用屬性 CreateProcedure Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a stored procedure is created in the database.
公用屬性 CreateQueue Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a Service Broker queue is created in the database.
公用屬性 CreateRemoteServiceBinding Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a remote service binding is created in the database.
公用屬性 CreateRole Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a database role is created in the database.
公用屬性 CreateRoute Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a Service Broker route is created in the database.
公用屬性 CreateRule Gets or sets a Boolean property value that specifies whether the event is included in the event set.
公用屬性 CreateSchema Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a schema is created in the database.
公用屬性 CreateService Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a Service Broker service is created in the database.
公用屬性 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 is included in the event set. The event occurs when a statistics counter is created in the database.
公用屬性 CreateSymmetricKey Gets or sets a Boolean property value that specifies whether the event is included in the event set.
公用屬性 CreateSynonym Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a synonym is created in the database.
公用屬性 CreateTable Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a table is created in the database.
公用屬性 CreateTrigger Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a trigger is created in the database.
公用屬性 CreateType Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a type is created in the database.
公用屬性 CreateUser Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a database user is created in the database.
公用屬性 CreateView Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a view is created in the database.
公用屬性 CreateXmlIndex Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when an XML index is created in the database.
公用屬性 CreateXmlSchemaCollection Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when an XML schema collection is created in the database.
公用屬性 DenyDatabase Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when access the database is denied.
公用屬性 DropApplicationRole Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when an application role is dropped from the database.
公用屬性 DropAssembly Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when an assembly is dropped from the database.
公用屬性 DropAsymmetricKey Gets or sets a Boolean property value that specifies whether the event is included in the event set.
公用屬性 DropBrokerPriority Gets or sets a Boolean property value that specifies whether the event is included in the event set.
公用屬性 DropCertificate Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a certificate is dropped from the database.
公用屬性 DropContract Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a Service Broker contract is dropped from the database.
公用屬性 DropDatabase Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when the database is dropped.
公用屬性 DropDatabaseAuditSpecification Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a database audit specification is dropped.
公用屬性 DropDatabaseEncryptionKey Gets or sets a Boolean property value that specifies whether the event is included in the event set.
公用屬性 DropDefault Gets or sets a Boolean property value that specifies whether the event is included in the event set.
公用屬性 DropEventNotification Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when an event notification is dropped from the database.
公用屬性 DropExtendedProperty Gets or sets a Boolean property value that specifies whether the event is included in the event set.
公用屬性 DropFulltextCatalog Gets or sets a Boolean property value that specifies whether the event is included in the event set.
公用屬性 DropFulltextIndex Gets or sets a Boolean property value that specifies whether the event is included in the event set.
公用屬性 DropFulltextStoplist Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a full-text Search, stop list is dropped from the database.
公用屬性 DropFunction Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a user-defined function is dropped from the database.
公用屬性 DropIndex Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when an index is dropped from the database.
公用屬性 DropMasterKey Gets or sets a Boolean property value that specifies whether the event is included in the event set.
公用屬性 DropMessageType Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a message type is dropped from the database.
公用屬性 DropPartitionFunction Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a partition function is dropped from the database.
公用屬性 DropPartitionScheme Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a partition scheme is dropped from the database.
公用屬性 DropPlanGuide Gets or sets a Boolean property value that specifies whether the event is included in the event set.
公用屬性 DropProcedure Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a stored procedure is dropped from the database.
公用屬性 DropQueue Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a Service Broker queue is dropped from the database.
公用屬性 DropRemoteServiceBinding Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a remote service binding is dropped from the database.
公用屬性 DropRole Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a database role is dropped from the database.
公用屬性 DropRoleMember Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a member is dropped from a database role in the database.
公用屬性 DropRoute Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a Service Broker route is dropped from the database.
公用屬性 DropRule Gets or sets a Boolean property value that specifies whether the event is included in the event set.
公用屬性 DropSchema Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a schema is dropped from the database.
公用屬性 DropService Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a Service Broker service is dropped from the database.
公用屬性 DropSignature Gets or sets a Boolean property value that specifies whether the event is included in the event set.
公用屬性 DropSignatureSchemaObject Gets or sets a Boolean property value that specifies whether the event is included in the event set.
公用屬性 DropStatistics Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a statistics counter is dropped from the database.
公用屬性 DropSymmetricKey Gets or sets a Boolean property value that specifies whether the event is included in the event set.
公用屬性 DropSynonym Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a synonym is dropped from the database.
公用屬性 DropTable Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a table is dropped from the database.
公用屬性 DropTrigger Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a trigger is dropped from the database.
公用屬性 DropType Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a type is dropped from the database.
公用屬性 DropUser Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a database user is dropped from the database.
公用屬性 DropView Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a view is dropped from the database.
公用屬性 DropXmlSchemaCollection Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when an XML schema collection is dropped from the database.
公用屬性 GrantDatabase Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when access is granted to the database.
公用屬性 NumberOfElements Gets the number of events included in the event set. (覆寫 EventSetBase. . :: . .NumberOfElements。)
公用屬性 Rename Gets or sets a Boolean property value that specifies whether the event is included in the event set.
公用屬性 RevokeDatabase Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when access to the database is revoked.
受保護的屬性 Storage Gets or sets the bit array for event set storage. (繼承自 EventSetBase。)
公用屬性 UnbindDefault Gets or sets a Boolean property value that specifies whether the event is included in the event set.
公用屬性 UnbindRule Gets or sets a Boolean property value that specifies whether the event is included in the event set.
公用屬性 UpdateStatistics Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when the statistics are updated in the database.

上層

方法

  名稱 說明
公用方法 Add(DatabaseEvent) Returns a set of database events after adding a new database event to the referenced event set.
公用方法靜態成員 Add(DatabaseEventSet, DatabaseEvent) Returns a set of database events after adding a new database event to the specified event set.
公用方法 Copy Returns a copy of the DatabaseEventSet object. (覆寫 EventSetBase. . :: . .Copy() () () ()。)
公用方法 Equals (繼承自 Object。)
受保護的方法 Finalize (繼承自 Object。)
受保護的方法 FitsMask Specifies whether the EventSetBase object fits the specified mask. (繼承自 EventSetBase。)
公用方法 GetHashCode (繼承自 Object。)
公用方法 GetType (繼承自 Object。)
受保護的方法 HasCommonBits Specifies whether the EventSetBase object has common bits with another specified EventSetBase object. (繼承自 EventSetBase。)
受保護的方法 MemberwiseClone (繼承自 Object。)
公用方法 Remove Removes an event from the event set.
受保護的方法 SetValue Sets the bit value at the specified index position. (繼承自 EventSetBase。)
公用方法靜態成員 Subtract Returns a set of database events after removing a database event from the specified event set.
公用方法 ToString Returns a string that represents the DatabaseEventSet object. (覆寫 Object. . :: . .ToString() () () ()。)

上層

運算子

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

上層

備註

The DatabaseEventSet object is required to specify the set of events that apply to the events that are generated by the database.

Thread Safety

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

執行緒安全性

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