Поделиться через


Класс 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

Все общие статические члены этого типа (Shared в Microsoft Visual Basic) можно использовать в многопоточных операциях. Безопасная многопоточная работа с членами экземпляров типа не гарантируется.

Безопасность многопоточности

Любые открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность с элементами экземпляров не гарантируется.