Classe DatabaseEventSet

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

Hiérarchie d'héritage

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

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
Public NotInheritable Class DatabaseEventSet _
    Inherits EventSetBase
'Utilisation
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

Le type DatabaseEventSet expose les membres suivants.

Constructeurs

  Nom Description
Méthode publique DatabaseEventSet() Initializes a new instance of the DatabaseEventSet class.
Méthode publique DatabaseEventSet(DatabaseEvent) Initializes a new instance of the DatabaseEventSet class with a specified set of events.
Méthode publique DatabaseEventSet(array<DatabaseEvent[]) Initializes a new instance of the DatabaseEventSet class with a specified set of events.
Méthode publique DatabaseEventSet(DatabaseEventSet) Initializes a new instance of the DatabaseEventSet class with a specified set of events.

Haut de la page

Propriétés

  Nom Description
Propriété publique 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.
Propriété publique AddSignature Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Propriété publique AddSignatureSchemaObject Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Propriété publique 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.
Propriété publique 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.
Propriété publique AlterAsymmetricKey Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Propriété publique 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.
Propriété publique AlterBrokerPriority Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Propriété publique 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.
Propriété publique 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.
Propriété publique AlterDatabaseEncryptionKey Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Propriété publique AlterExtendedProperty Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Propriété publique AlterFulltextCatalog Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Propriété publique AlterFulltextIndex Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Propriété publique 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.
Propriété publique 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.
Propriété publique 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.
Propriété publique AlterMasterKey Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Propriété publique 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.
Propriété publique 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.
Propriété publique 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.
Propriété publique AlterPlanGuide Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Propriété publique 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.
Propriété publique 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.
Propriété publique 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.
Propriété publique 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.
Propriété publique 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.
Propriété publique 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.
Propriété publique AlterSearchPropertyList 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.
Propriété publique AlterSequence 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.
Propriété publique 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.
Propriété publique AlterSymmetricKey Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Propriété publique 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.
Propriété publique 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.
Propriété publique 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.
Propriété publique 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.
Propriété publique 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.
Propriété publique BindDefault Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Propriété publique BindRule Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Propriété publique 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.
Propriété publique 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.
Propriété publique CreateAsymmetricKey Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Propriété publique CreateBrokerPriority Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Propriété publique 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.
Propriété publique 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.
Propriété publique 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.
Propriété publique CreateDatabaseEncryptionKey Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Propriété publique CreateDefault Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Propriété publique 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.
Propriété publique CreateExtendedProperty Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Propriété publique CreateFulltextCatalog Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Propriété publique CreateFulltextIndex Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Propriété publique 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.
Propriété publique 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.
Propriété publique 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.
Propriété publique CreateMasterKey Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Propriété publique 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.
Propriété publique 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.
Propriété publique 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.
Propriété publique CreatePlanGuide Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Propriété publique 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.
Propriété publique 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.
Propriété publique 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.
Propriété publique 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.
Propriété publique 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.
Propriété publique CreateRule Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Propriété publique 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.
Propriété publique CreateSearchPropertyList 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.
Propriété publique CreateSequence 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.
Propriété publique 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.
Propriété publique CreateSpatialIndex Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Propriété publique 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.
Propriété publique CreateSymmetricKey Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Propriété publique 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.
Propriété publique 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.
Propriété publique 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.
Propriété publique 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.
Propriété publique 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.
Propriété publique 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.
Propriété publique 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.
Propriété publique 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.
Propriété publique 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.
Propriété publique 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.
Propriété publique 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.
Propriété publique DropAsymmetricKey Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Propriété publique DropBrokerPriority Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Propriété publique 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.
Propriété publique 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.
Propriété publique 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.
Propriété publique 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.
Propriété publique DropDatabaseEncryptionKey Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Propriété publique DropDefault Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Propriété publique 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.
Propriété publique DropExtendedProperty Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Propriété publique DropFulltextCatalog Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Propriété publique DropFulltextIndex Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Propriété publique 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.
Propriété publique 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.
Propriété publique 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.
Propriété publique DropMasterKey Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Propriété publique 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.
Propriété publique 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.
Propriété publique 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.
Propriété publique DropPlanGuide Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Propriété publique 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.
Propriété publique 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.
Propriété publique 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.
Propriété publique 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.
Propriété publique 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.
Propriété publique 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.
Propriété publique DropRule Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Propriété publique 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.
Propriété publique DropSearchPropertyList 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.
Propriété publique DropSequence 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.
Propriété publique 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.
Propriété publique DropSignature Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Propriété publique DropSignatureSchemaObject Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Propriété publique 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.
Propriété publique DropSymmetricKey Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Propriété publique 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.
Propriété publique 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.
Propriété publique 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.
Propriété publique 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.
Propriété publique 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.
Propriété publique 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.
Propriété publique 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.
Propriété publique 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.
Propriété publique NumberOfElements Gets the number of events included in the event set. (remplace EventSetBase.NumberOfElements.)
Propriété publique Rename Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Propriété publique 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.
Propriété protégée Storage Gets or sets the bit array for event set storage. (hérité de EventSetBase.)
Propriété publique UnbindDefault Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Propriété publique UnbindRule Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Propriété publique 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.

Haut de la page

Méthodes

  Nom Description
Méthode publique Add(DatabaseEvent) Returns a set of database events after adding a new database event to the referenced event set.
Méthode publiqueMembre statique Add(DatabaseEventSet, DatabaseEvent) Returns a set of database events after adding a new database event to the specified event set.
Méthode publique Copy Returns a copy of the DatabaseEventSet object. (remplace EventSetBase.Copy().)
Méthode publique Equals (hérité de Object.)
Méthode publique GetHashCode (hérité de Object.)
Méthode publique GetType (hérité de Object.)
Méthode publique Remove Removes an event from the event set.
Méthode publiqueMembre statique Subtract Returns a set of database events after removing a database event from the specified event set.
Méthode publique ToString Returns a string that represents the DatabaseEventSet object. (remplace Object.ToString().)

Haut de la page

Opérateurs

  Nom Description
Opérateur publicMembre statique Addition Creates a database event set by performing an addition operation on a DatabaseEvent object and a DatabaseEventSet object.
Opérateur publicMembre statique Subtraction Creates a database event set by performing a subtraction operation on a DatabaseEvent object and a DatabaseEventSet object.

Haut de la page

Notes

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

Thread Safety

Tout membre statique public (Partagé dans Microsoft Visual Basic) de ce type est sûr dans le cadre des opérations à plusieurs threads. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.

Exemples

Gestion des événements SMO

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.

Voir aussi

Référence

Espace de noms Microsoft.SqlServer.Management.Smo