DatabaseEvent Class

The DatabaseEvent object represents the SQL Server database events that can be included in a database event set.

Inheritance Hierarchy

System.Object
  Microsoft.SqlServer.Management.Smo.DatabaseEvent

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public NotInheritable Class DatabaseEvent
'Usage
Dim instance As DatabaseEvent
public sealed class DatabaseEvent
public ref class DatabaseEvent sealed
[<SealedAttribute>]
type DatabaseEvent =  class end
public final class DatabaseEvent

The DatabaseEvent type exposes the following members.

Properties

  Name Description
Public propertyStatic member AddRoleMember Gets a database event that can be included in the event set.
Public propertyStatic member AddSignature Gets a database event that can be included in the event set.
Public propertyStatic member AddSignatureSchemaObject Gets a database event that can be included in the event set.
Public propertyStatic member AlterApplicationRole Gets a database event that can be included in the event set.
Public propertyStatic member AlterAssembly Gets a database event that can be included in the event set.
Public propertyStatic member AlterAsymmetricKey Gets a database event that can be included in the event set.
Public propertyStatic member AlterAuthorizationDatabase Gets a database event that can be included in the event set.
Public propertyStatic member AlterBrokerPriority Gets a database event that can be included in the event set.
Public propertyStatic member AlterCertificate Gets a database event that can be included in the event set.
Public propertyStatic member AlterDatabaseAuditSpecification Gets a database event that can be included in the event set.
Public propertyStatic member AlterDatabaseEncryptionKey Gets a database event that can be included in the event set.
Public propertyStatic member AlterExtendedProperty Gets a database event that can be included in the event set.
Public propertyStatic member AlterFulltextCatalog Gets a database event that can be included in the event set.
Public propertyStatic member AlterFulltextIndex Gets a database event that can be included in the event set.
Public propertyStatic member AlterFulltextStoplist Gets a database event that can be included in the event set.
Public propertyStatic member AlterFunction Gets a database event that can be included in the event set.
Public propertyStatic member AlterIndex Gets a database event that can be included in the event set.
Public propertyStatic member AlterMasterKey Gets a database event that can be included in the event set.
Public propertyStatic member AlterMessageType Gets a database event that can be included in the event set.
Public propertyStatic member AlterPartitionFunction Gets a database event that can be included in the event set.
Public propertyStatic member AlterPartitionScheme Gets a database event that can be included in the event set.
Public propertyStatic member AlterPlanGuide Gets a database event that can be included in the event set.
Public propertyStatic member AlterProcedure Gets a database event that can be included in the event set.
Public propertyStatic member AlterQueue Gets a database event that can be included in the event set.
Public propertyStatic member AlterRemoteServiceBinding Gets a database event that can be included in the event set.
Public propertyStatic member AlterRole Gets a database event that can be included in the event set.
Public propertyStatic member AlterRoute Gets a database event that can be included in the event set.
Public propertyStatic member AlterSchema Gets a database event that can be included in the event set.
Public propertyStatic member AlterSearchPropertyList Gets a database event that can be included in the event set.
Public propertyStatic member AlterSequence Gets a database event that can be included in the event set.
Public propertyStatic member AlterService Gets a database event that can be included in the event set.
Public propertyStatic member AlterSymmetricKey Gets a database event that can be included in the event set.
Public propertyStatic member AlterTable Gets a database event that can be included in the event set.
Public propertyStatic member AlterTrigger Gets a database event that can be included in the event set.
Public propertyStatic member AlterUser Gets a database event that can be included in the event set.
Public propertyStatic member AlterView Gets a database event that can be included in the event set.
Public propertyStatic member AlterXmlSchemaCollection Gets a database event that can be included in the event set.
Public propertyStatic member BindDefault Gets a database event that can be included in the event set.
Public propertyStatic member BindRule Gets a database event that can be included in the event set.
Public propertyStatic member CreateApplicationRole Gets a database event that can be included in the event set.
Public propertyStatic member CreateAssembly Gets a database event that can be included in the event set.
Public propertyStatic member CreateAsymmetricKey Gets a database event that can be included in the event set.
Public propertyStatic member CreateBrokerPriority Gets a database event that can be included in the event set.
Public propertyStatic member CreateCertificate Gets a database event that can be included in the event set.
Public propertyStatic member CreateContract Gets a database event that can be included in the event set.
Public propertyStatic member CreateDatabaseAuditSpecification Gets a database event that can be included in the event set.
Public propertyStatic member CreateDatabaseEncryptionKey Gets a database event that can be included in the event set.
Public propertyStatic member CreateDefault Gets a database event that can be included in the event set.
Public propertyStatic member CreateEventNotification Gets a database event that can be included in the event set.
Public propertyStatic member CreateExtendedProperty Gets a database event that can be included in the event set.
Public propertyStatic member CreateFulltextCatalog Gets a database event that can be included in the event set.
Public propertyStatic member CreateFulltextIndex Gets a database event that can be included in the event set.
Public propertyStatic member CreateFulltextStoplist Gets a database event that can be included in the event set.
Public propertyStatic member CreateFunction Gets a database event that can be included in the event set.
Public propertyStatic member CreateIndex Gets a database event that can be included in the event set.
Public propertyStatic member CreateMasterKey Gets a database event that can be included in the event set.
Public propertyStatic member CreateMessageType Gets a database event that can be included in the event set.
Public propertyStatic member CreatePartitionFunction Gets a database event that can be included in the event set.
Public propertyStatic member CreatePartitionScheme Gets a database event that can be included in the event set.
Public propertyStatic member CreatePlanGuide Gets a database event that can be included in the event set.
Public propertyStatic member CreateProcedure Gets a database event that can be included in the event set.
Public propertyStatic member CreateQueue Gets a database event that can be included in the event set.
Public propertyStatic member CreateRemoteServiceBinding Gets a database event that can be included in the event set.
Public propertyStatic member CreateRole Gets a database event that can be included in the event set.
Public propertyStatic member CreateRoute Gets a database event that can be included in the event set.
Public propertyStatic member CreateRule Gets a database event that can be included in the event set.
Public propertyStatic member CreateSchema Gets a database event that can be included in the event set.
Public propertyStatic member CreateSearchPropertyList Gets a database event that can be included in the event set.
Public propertyStatic member CreateSequence Gets a database event that can be included in the event set.
Public propertyStatic member CreateService Gets a database event that can be included in the event set.
Public propertyStatic member CreateSpatialIndex Gets a database event that can be included in the event set.
Public propertyStatic member CreateStatistics Gets a database event that can be included in the event set.
Public propertyStatic member CreateSymmetricKey Gets a database event that can be included in the event set.
Public propertyStatic member CreateSynonym Gets a database event that can be included in the event set.
Public propertyStatic member CreateTable Gets a database event that can be included in the event set.
Public propertyStatic member CreateTrigger Gets a database event that can be included in the event set.
Public propertyStatic member CreateType Gets a database event that can be included in the event set.
Public propertyStatic member CreateUser Gets a database event that can be included in the event set.
Public propertyStatic member CreateView Gets a database event that can be included in the event set.
Public propertyStatic member CreateXmlIndex Gets a database event that can be included in the event set.
Public propertyStatic member CreateXmlSchemaCollection Gets a database event that can be included in the event set.
Public propertyStatic member DenyDatabase Gets a database event that can be included in the event set.
Public propertyStatic member DropApplicationRole Gets a database event that can be included in the event set.
Public propertyStatic member DropAssembly Gets a database event that can be included in the event set.
Public propertyStatic member DropAsymmetricKey Gets a database event that can be included in the event set.
Public propertyStatic member DropBrokerPriority Gets a database event that can be included in the event set.
Public propertyStatic member DropCertificate Gets a database event that can be included in the event set.
Public propertyStatic member DropContract Gets a database event that can be included in the event set.
Public propertyStatic member DropDatabase Gets a database event that can be included in the event set.
Public propertyStatic member DropDatabaseAuditSpecification Gets a database event that can be included in the event set.
Public propertyStatic member DropDatabaseEncryptionKey Gets a database event that can be included in the event set.
Public propertyStatic member DropDefault Gets a database event that can be included in the event set.
Public propertyStatic member DropEventNotification Gets a database event that can be included in the event set.
Public propertyStatic member DropExtendedProperty Gets a database event that can be included in the event set.
Public propertyStatic member DropFulltextCatalog Gets a database event that can be included in the event set.
Public propertyStatic member DropFulltextIndex Gets a database event that can be included in the event set.
Public propertyStatic member DropFulltextStoplist Gets a database event that can be included in the event set.
Public propertyStatic member DropFunction Gets a database event that can be included in the event set.
Public propertyStatic member DropIndex Gets a database event that can be included in the event set.
Public propertyStatic member DropMasterKey Gets a database event that can be included in the event set.
Public propertyStatic member DropMessageType Gets a database event that can be included in the event set.
Public propertyStatic member DropPartitionFunction Gets a database event that can be included in the event set.
Public propertyStatic member DropPartitionScheme Gets a database event that can be included in the event set.
Public propertyStatic member DropPlanGuide Gets a database event that can be included in the event set.
Public propertyStatic member DropProcedure Gets a database event that can be included in the event set.
Public propertyStatic member DropQueue Gets a database event that can be included in the event set.
Public propertyStatic member DropRemoteServiceBinding Gets a database event that can be included in the event set.
Public propertyStatic member DropRole Gets a database event that can be included in the event set.
Public propertyStatic member DropRoleMember Gets a database event that can be included in the event set.
Public propertyStatic member DropRoute Gets a database event that can be included in the event set.
Public propertyStatic member DropRule Gets a database event that can be included in the event set.
Public propertyStatic member DropSchema Gets a database event that can be included in the event set.
Public propertyStatic member DropSearchPropertyList Gets a database event that can be included in the event set.
Public propertyStatic member DropSequence Gets a database event that can be included in the event set.
Public propertyStatic member DropService Gets a database event that can be included in the event set.
Public propertyStatic member DropSignature Gets a database event that can be included in the event set.
Public propertyStatic member DropSignatureSchemaObject Gets a database event that can be included in the event set.
Public propertyStatic member DropStatistics Gets a database event that can be included in the event set.
Public propertyStatic member DropSymmetricKey Gets a database event that can be included in the event set.
Public propertyStatic member DropSynonym Gets a database event that can be included in the event set.
Public propertyStatic member DropTable Gets a database event that can be included in the event set.
Public propertyStatic member DropTrigger Gets a database event that can be included in the event set.
Public propertyStatic member DropType Gets a database event that can be included in the event set.
Public propertyStatic member DropUser Gets a database event that can be included in the event set.
Public propertyStatic member DropView Gets a database event that can be included in the event set.
Public propertyStatic member DropXmlSchemaCollection Gets a database event that can be included in the event set.
Public propertyStatic member GrantDatabase Gets a database event that can be included in the event set.
Public propertyStatic member Rename Gets a database event that can be included in the event set.
Public propertyStatic member RevokeDatabase Gets a database event that can be included in the event set.
Public propertyStatic member UnbindDefault Gets a database event that can be included in the event set.
Public propertyStatic member UnbindRule Gets a database event that can be included in the event set.
Public propertyStatic member UpdateStatistics Gets a database event that can be included in the event set.

Top

Methods

  Name Description
Public methodStatic member Add Returns the database event set that was created by adding two database events together.
Public methodStatic member BitwiseOr Creates a database event set by performing a bitwise OR operation on two DatabaseEvent objects.
Public method Equals Determines whether the referenced database event object is equal to a specified object. (Overrides Object.Equals(Object).)
Public method GetHashCode Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Overrides Object.GetHashCode().)
Public method GetType (Inherited from Object.)
Public method ToString Returns the referenced object in string format. (Overrides Object.ToString().)

Top

Operators

  Name Description
Public operatorStatic member Addition Creates a database event set by performing an addition operation on two DatabaseEvent objects.
Public operatorStatic member BitwiseOr Creates a database event set by performing a bitwise OR operation on two DatabaseEvent objects.
Public operatorStatic member Equality Creates a database event set by performing an equality operation on two DatabaseEvent objects.
Public operatorStatic member Implicit(DatabaseEvent to DatabaseEventSet) Creates a database event set by performing an implicit operation on a DatabaseEvent object.
Public operatorStatic member Inequality Creates a database event set by performing an inequality operation on two DatabaseEvent objects.

Top

Remarks

The DatabaseEvent object contains a property for each event to which the database can respond. The actual set of events is specified by using the DatabaseEventSet object.

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.

Examples

Handling SMO Events

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.SqlServer.Management.Smo Namespace