Classe DatabaseEventSet

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

Gerarchia di ereditarietà

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

Spazio dei nomi  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Sintassi

'Dichiarazione
Public NotInheritable Class DatabaseEventSet _
    Inherits EventSetBase
'Utilizzo
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

Nel tipo DatabaseEventSet sono esposti i membri seguenti.

Costruttori

  Nome Descrizione
Metodo pubblico DatabaseEventSet() Initializes a new instance of the DatabaseEventSet class.
Metodo pubblico DatabaseEventSet(DatabaseEvent) Initializes a new instance of the DatabaseEventSet class with a specified set of events.
Metodo pubblico DatabaseEventSet(array<DatabaseEvent[]) Initializes a new instance of the DatabaseEventSet class with a specified set of events.
Metodo pubblico DatabaseEventSet(DatabaseEventSet) Initializes a new instance of the DatabaseEventSet class with a specified set of events.

In alto

Proprietà

  Nome Descrizione
Proprietà pubblica 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.
Proprietà pubblica AddSignature Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Proprietà pubblica AddSignatureSchemaObject Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica AlterAsymmetricKey Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Proprietà pubblica 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.
Proprietà pubblica AlterBrokerPriority Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica AlterDatabaseEncryptionKey Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Proprietà pubblica AlterExtendedProperty Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Proprietà pubblica AlterFulltextCatalog Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Proprietà pubblica AlterFulltextIndex Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica AlterMasterKey Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica AlterPlanGuide Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica AlterSymmetricKey Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica BindDefault Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Proprietà pubblica BindRule Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica CreateAsymmetricKey Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Proprietà pubblica CreateBrokerPriority Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica CreateDatabaseEncryptionKey Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Proprietà pubblica CreateDefault Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Proprietà pubblica 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.
Proprietà pubblica CreateExtendedProperty Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Proprietà pubblica CreateFulltextCatalog Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Proprietà pubblica CreateFulltextIndex Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica CreateMasterKey Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica CreatePlanGuide Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica CreateRule Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica CreateSpatialIndex Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Proprietà pubblica 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.
Proprietà pubblica CreateSymmetricKey Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica DropAsymmetricKey Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Proprietà pubblica DropBrokerPriority Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica DropDatabaseEncryptionKey Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Proprietà pubblica DropDefault Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Proprietà pubblica 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.
Proprietà pubblica DropExtendedProperty Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Proprietà pubblica DropFulltextCatalog Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Proprietà pubblica DropFulltextIndex Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica DropMasterKey Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica DropPlanGuide Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica DropRule Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica DropSignature Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Proprietà pubblica DropSignatureSchemaObject Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Proprietà pubblica 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.
Proprietà pubblica DropSymmetricKey Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica NumberOfElements Gets the number of events included in the event set. Esegue l'override di EventSetBase.NumberOfElements.
Proprietà pubblica Rename Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Proprietà pubblica 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.
Proprietà protetta Storage Gets or sets the bit array for event set storage. Ereditato da EventSetBase.
Proprietà pubblica UnbindDefault Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Proprietà pubblica UnbindRule Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Proprietà pubblica 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.

In alto

Metodi

  Nome Descrizione
Metodo pubblico Add(DatabaseEvent) Returns a set of database events after adding a new database event to the referenced event set.
Metodo pubblicoMembro statico Add(DatabaseEventSet, DatabaseEvent) Returns a set of database events after adding a new database event to the specified event set.
Metodo pubblico Copy Returns a copy of the DatabaseEventSet object. Esegue l'override di EventSetBase.Copy().
Metodo pubblico Equals Ereditato da Object.
Metodo pubblico GetHashCode Ereditato da Object.
Metodo pubblico GetType Ereditato da Object.
Metodo pubblico Remove Removes an event from the event set.
Metodo pubblicoMembro statico Subtract Returns a set of database events after removing a database event from the specified event set.
Metodo pubblico ToString Returns a string that represents the DatabaseEventSet object. Esegue l'override di Object.ToString().

In alto

Operatori

  Nome Descrizione
Operatore pubblicoMembro statico Addition Creates a database event set by performing an addition operation on a DatabaseEvent object and a DatabaseEventSet object.
Operatore pubblicoMembro statico Subtraction Creates a database event set by performing a subtraction operation on a DatabaseEvent object and a DatabaseEventSet object.

In alto

Osservazioni

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

Thread Safety

Tutti i membri statici pubblici (Shared in Microsoft Visual Basic) di questo tipo sono sicuri per le operazioni a thread multipli. Non è invece garantita la sicurezza dei membri dell'istanza.

Esempi

Gestione degli eventi SMO

Protezione dei thread

I membri static (Shared in Visual Basic) pubblici di questo tipo sono affidabili. Non è invece garantita la sicurezza dei membri dell'istanza.

Vedere anche

Riferimento

Spazio dei nomi Microsoft.SqlServer.Management.Smo