Delen via


ServerEvent Class

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

Inheritance Hierarchy

System.Object
  Microsoft.SqlServer.Management.Smo.ServerEvent

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

Syntax

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

The ServerEvent type exposes the following members.

Properties

  Name Description
Public propertyStatic member AddRoleMember Gets a server event that can be included in the event set.
Public propertyStatic member AddServerRoleMember Gets a server event that can be included in the event set.
Public propertyStatic member AddSignature Gets a server event that can be included in the event set.
Public propertyStatic member AddSignatureSchemaObject Gets a server event that can be included in the event set.
Public propertyStatic member AlterApplicationRole Gets a server event that can be included in the event set.
Public propertyStatic member AlterAssembly Gets a server event that can be included in the event set.
Public propertyStatic member AlterAsymmetricKey Gets a server event that can be included in the event set.
Public propertyStatic member AlterAuthorizationDatabase Gets a server event that can be included in the event set.
Public propertyStatic member AlterAuthorizationServer Gets a server event that can be included in the event set.
Public propertyStatic member AlterAvailabilityGroup Gets a server event that can be included in the event set.
Public propertyStatic member AlterBrokerPriority Gets a server event that can be included in the event set.
Public propertyStatic member AlterCertificate Gets a server event that can be included in the event set.
Public propertyStatic member AlterCredential Gets a server event that can be included in the event set.
Public propertyStatic member AlterCryptographicProvider Gets a server event that can be included in the event set.
Public propertyStatic member AlterDatabase Gets a server event that can be included in the event set.
Public propertyStatic member AlterDatabaseAuditSpecification Gets a server event that can be included in the event set.
Public propertyStatic member AlterDatabaseEncryptionKey Gets a server event that can be included in the event set.
Public propertyStatic member AlterEndpoint Gets a server event that can be included in the event set.
Public propertyStatic member AlterEventSession Gets a server event that can be included in the event set.
Public propertyStatic member AlterExtendedProperty Gets a server event that can be included in the event set.
Public propertyStatic member AlterFulltextCatalog Gets a server event that can be included in the event set.
Public propertyStatic member AlterFulltextIndex Gets a server event that can be included in the event set.
Public propertyStatic member AlterFulltextStoplist Gets a server event that can be included in the event set.
Public propertyStatic member AlterFunction Gets a server event that can be included in the event set.
Public propertyStatic member AlterIndex Gets a server event that can be included in the event set.
Public propertyStatic member AlterInstance Gets a server event that can be included in the event set.
Public propertyStatic member AlterLinkedServer Gets a server event that can be included in the event set.
Public propertyStatic member AlterLogin Gets a server event that can be included in the event set.
Public propertyStatic member AlterMasterKey Gets a server event that can be included in the event set.
Public propertyStatic member AlterMessage Gets a server event that can be included in the event set.
Public propertyStatic member AlterMessageType Gets a server event that can be included in the event set.
Public propertyStatic member AlterPartitionFunction Gets a server event that can be included in the event set.
Public propertyStatic member AlterPartitionScheme Gets a server event that can be included in the event set.
Public propertyStatic member AlterPlanGuide Gets a server event that can be included in the event set.
Public propertyStatic member AlterProcedure Gets a server event that can be included in the event set.
Public propertyStatic member AlterQueue Gets a server event that can be included in the event set.
Public propertyStatic member AlterRemoteServer Gets a server event that can be included in the event set.
Public propertyStatic member AlterRemoteServiceBinding Gets a server event that can be included in the event set.
Public propertyStatic member AlterResourceGovernorConfig Gets a server event that can be included in the event set.
Public propertyStatic member AlterResourcePool Gets a server event that can be included in the event set.
Public propertyStatic member AlterRole Gets a server event that can be included in the event set.
Public propertyStatic member AlterRoute Gets a server event that can be included in the event set.
Public propertyStatic member AlterSchema Gets a server event that can be included in the event set.
Public propertyStatic member AlterSearchPropertyList Gets a server event that can be included in the event set.
Public propertyStatic member AlterSequence Gets a server event that can be included in the event set.
Public propertyStatic member AlterServerAudit Gets a server event that can be included in the event set.
Public propertyStatic member AlterServerAuditSpecification Gets a server event that can be included in the event set.
Public propertyStatic member AlterServerConfiguration Gets a server event that can be included in the event set.
Public propertyStatic member AlterServerRole Gets a server event that can be included in the event set.
Public propertyStatic member AlterService Gets a server event that can be included in the event set.
Public propertyStatic member AlterServiceMasterKey Gets a server event that can be included in the event set.
Public propertyStatic member AlterSymmetricKey Gets a server event that can be included in the event set.
Public propertyStatic member AlterTable Gets a server event that can be included in the event set.
Public propertyStatic member AlterTrigger Gets a server event that can be included in the event set.
Public propertyStatic member AlterUser Gets a server event that can be included in the event set.
Public propertyStatic member AlterView Gets a server event that can be included in the event set.
Public propertyStatic member AlterWorkloadGroup Gets a server event that can be included in the event set.
Public propertyStatic member AlterXmlSchemaCollection Gets a server event that can be included in the event set.
Public propertyStatic member BindDefault Gets a server event that can be included in the event set.
Public propertyStatic member BindRule Gets a server event that can be included in the event set.
Public propertyStatic member CreateApplicationRole Gets a server event that can be included in the event set.
Public propertyStatic member CreateAssembly Gets a server event that can be included in the event set.
Public propertyStatic member CreateAsymmetricKey Gets a server event that can be included in the event set.
Public propertyStatic member CreateAvailabilityGroup Gets a server event that can be included in the event set.
Public propertyStatic member CreateBrokerPriority Gets a server event that can be included in the event set.
Public propertyStatic member CreateCertificate Gets a server event that can be included in the event set.
Public propertyStatic member CreateContract Gets a server event that can be included in the event set.
Public propertyStatic member CreateCredential Gets a server event that can be included in the event set.
Public propertyStatic member CreateCryptographicProvider Gets a server event that can be included in the event set.
Public propertyStatic member CreateDatabase Gets a server event that can be included in the event set.
Public propertyStatic member CreateDatabaseAuditSpecification Gets a server event that can be included in the event set.
Public propertyStatic member CreateDatabaseEncryptionKey Gets a server event that can be included in the event set.
Public propertyStatic member CreateDefault Gets a server event that can be included in the event set.
Public propertyStatic member CreateEndpoint Gets a server event that can be included in the event set.
Public propertyStatic member CreateEventNotification Gets a server event that can be included in the event set.
Public propertyStatic member CreateEventSession Gets a server event that can be included in the event set.
Public propertyStatic member CreateExtendedProcedure Gets a server event that can be included in the event set.
Public propertyStatic member CreateExtendedProperty Gets a server event that can be included in the event set.
Public propertyStatic member CreateFulltextCatalog Gets a server event that can be included in the event set.
Public propertyStatic member CreateFulltextIndex Gets a server event that can be included in the event set.
Public propertyStatic member CreateFulltextStoplist Gets a server event that can be included in the event set.
Public propertyStatic member CreateFunction Gets a server event that can be included in the event set.
Public propertyStatic member CreateIndex Gets a server event that can be included in the event set.
Public propertyStatic member CreateLinkedServer Gets a server event that can be included in the event set.
Public propertyStatic member CreateLinkedServerLogin Gets a server event that can be included in the event set.
Public propertyStatic member CreateLogin Gets a server event that can be included in the event set.
Public propertyStatic member CreateMasterKey Gets a server event that can be included in the event set.
Public propertyStatic member CreateMessage Gets a server event that can be included in the event set.
Public propertyStatic member CreateMessageType Gets a server event that can be included in the event set.
Public propertyStatic member CreatePartitionFunction Gets a server event that can be included in the event set.
Public propertyStatic member CreatePartitionScheme Gets a server event that can be included in the event set.
Public propertyStatic member CreatePlanGuide Gets a server event that can be included in the event set.
Public propertyStatic member CreateProcedure Gets a server event that can be included in the event set.
Public propertyStatic member CreateQueue Gets a server event that can be included in the event set.
Public propertyStatic member CreateRemoteServer Gets a server event that can be included in the event set.
Public propertyStatic member CreateRemoteServiceBinding Gets a server event that can be included in the event set.
Public propertyStatic member CreateResourcePool Gets a server event that can be included in the event set.
Public propertyStatic member CreateRole Gets a server event that can be included in the event set.
Public propertyStatic member CreateRoute Gets a server event that can be included in the event set.
Public propertyStatic member CreateRule Gets a server event that can be included in the event set.
Public propertyStatic member CreateSchema Gets a server event that can be included in the event set.
Public propertyStatic member CreateSearchPropertyList Gets a server event that can be included in the event set.
Public propertyStatic member CreateSequence Gets a server event that can be included in the event set.
Public propertyStatic member CreateServerAudit Gets a server event that can be included in the event set.
Public propertyStatic member CreateServerAuditSpecification Gets a server event that can be included in the event set.
Public propertyStatic member CreateServerRole Gets a server event that can be included in the event set.
Public propertyStatic member CreateService Gets a server event that can be included in the event set.
Public propertyStatic member CreateSpatialIndex Gets a server event that can be included in the event set.
Public propertyStatic member CreateStatistics Gets a server event that can be included in the event set.
Public propertyStatic member CreateSymmetricKey Gets a server event that can be included in the event set.
Public propertyStatic member CreateSynonym Gets a server event that can be included in the event set.
Public propertyStatic member CreateTable Gets a server event that can be included in the event set.
Public propertyStatic member CreateTrigger Gets a server event that can be included in the event set.
Public propertyStatic member CreateType Gets a server event that can be included in the event set.
Public propertyStatic member CreateUser Gets a server event that can be included in the event set.
Public propertyStatic member CreateView Gets a server event that can be included in the event set.
Public propertyStatic member CreateWorkloadGroup Gets a server event that can be included in the event set.
Public propertyStatic member CreateXmlIndex Gets a server event that can be included in the event set.
Public propertyStatic member CreateXmlSchemaCollection Gets a server event that can be included in the event set.
Public propertyStatic member DenyDatabase Gets a server event that can be included in the event set.
Public propertyStatic member DenyServer Gets a server event that can be included in the event set.
Public propertyStatic member DropApplicationRole Gets a server event that can be included in the event set.
Public propertyStatic member DropAssembly Gets a server event that can be included in the event set.
Public propertyStatic member DropAsymmetricKey Gets a server event that can be included in the event set.
Public propertyStatic member DropAvailabilityGroup Gets a server event that can be included in the event set.
Public propertyStatic member DropBrokerPriority Gets a server event that can be included in the event set.
Public propertyStatic member DropCertificate Gets a server event that can be included in the event set.
Public propertyStatic member DropContract Gets a server event that can be included in the event set.
Public propertyStatic member DropCredential Gets a server event that can be included in the event set.
Public propertyStatic member DropCryptographicProvider Gets a server event that can be included in the event set.
Public propertyStatic member DropDatabase Gets a server event that can be included in the event set.
Public propertyStatic member DropDatabaseAuditSpecification Gets a server event that can be included in the event set.
Public propertyStatic member DropDatabaseEncryptionKey Gets a server event that can be included in the event set.
Public propertyStatic member DropDefault Gets a server event that can be included in the event set.
Public propertyStatic member DropEndpoint Gets a server event that can be included in the event set.
Public propertyStatic member DropEventNotification Gets a server event that can be included in the event set.
Public propertyStatic member DropEventSession Gets a server event that can be included in the event set.
Public propertyStatic member DropExtendedProcedure Gets a server event that can be included in the event set.
Public propertyStatic member DropExtendedProperty Gets a server event that can be included in the event set.
Public propertyStatic member DropFulltextCatalog Gets a server event that can be included in the event set.
Public propertyStatic member DropFulltextIndex Gets a server event that can be included in the event set.
Public propertyStatic member DropFulltextStoplist Gets a server event that can be included in the event set.
Public propertyStatic member DropFunction Gets a server event that can be included in the event set.
Public propertyStatic member DropIndex Gets a server event that can be included in the event set.
Public propertyStatic member DropLinkedServer Gets a server event that can be included in the event set.
Public propertyStatic member DropLinkedServerLogin Gets a server event that can be included in the event set.
Public propertyStatic member DropLogin Gets a server event that can be included in the event set.
Public propertyStatic member DropMasterKey Gets a server event that can be included in the event set.
Public propertyStatic member DropMessage Gets a server event that can be included in the event set.
Public propertyStatic member DropMessageType Gets a server event that can be included in the event set.
Public propertyStatic member DropPartitionFunction Gets a server event that can be included in the event set.
Public propertyStatic member DropPartitionScheme Gets a server event that can be included in the event set.
Public propertyStatic member DropPlanGuide Gets a server event that can be included in the event set.
Public propertyStatic member DropProcedure Gets a server event that can be included in the event set.
Public propertyStatic member DropQueue Gets a server event that can be included in the event set.
Public propertyStatic member DropRemoteServer Gets a server event that can be included in the event set.
Public propertyStatic member DropRemoteServiceBinding Gets a server event that can be included in the event set.
Public propertyStatic member DropResourcePool Gets a server event that can be included in the event set.
Public propertyStatic member DropRole Gets a server event that can be included in the event set.
Public propertyStatic member DropRoleMember Gets a server event that can be included in the event set.
Public propertyStatic member DropRoute Gets a server event that can be included in the event set.
Public propertyStatic member DropRule Gets a server event that can be included in the event set.
Public propertyStatic member DropSchema Gets a server event that can be included in the event set.
Public propertyStatic member DropSearchPropertyList Gets a server event that can be included in the event set.
Public propertyStatic member DropSequence Gets a server event that can be included in the event set.
Public propertyStatic member DropServerAudit Gets a server event that can be included in the event set.
Public propertyStatic member DropServerAuditSpecification Gets a server event that can be included in the event set.
Public propertyStatic member DropServerRole Gets a server event that can be included in the event set.
Public propertyStatic member DropServerRoleMember Gets a server event that can be included in the event set.
Public propertyStatic member DropService Gets a server event that can be included in the event set.
Public propertyStatic member DropSignature Gets a server event that can be included in the event set.
Public propertyStatic member DropSignatureSchemaObject Gets a server event that can be included in the event set.
Public propertyStatic member DropStatistics Gets a server event that can be included in the event set.
Public propertyStatic member DropSymmetricKey Gets a server event that can be included in the event set.
Public propertyStatic member DropSynonym Gets a server event that can be included in the event set.
Public propertyStatic member DropTable Gets a server event that can be included in the event set.
Public propertyStatic member DropTrigger Gets a server event that can be included in the event set.
Public propertyStatic member DropType Gets a server event that can be included in the event set.
Public propertyStatic member DropUser Gets a server event that can be included in the event set.
Public propertyStatic member DropView Gets a server event that can be included in the event set.
Public propertyStatic member DropWorkloadGroup Gets a server event that can be included in the event set.
Public propertyStatic member DropXmlSchemaCollection Gets a server event that can be included in the event set.
Public propertyStatic member GrantDatabase Gets a server event that can be included in the event set.
Public propertyStatic member GrantServer Gets a server event that can be included in the event set.
Public propertyStatic member Rename Gets a server event that can be included in the event set.
Public propertyStatic member RevokeDatabase Gets a server event that can be included in the event set.
Public propertyStatic member RevokeServer Gets a server event that can be included in the event set.
Public propertyStatic member UnbindDefault Gets a server event that can be included in the event set.
Public propertyStatic member UnbindRule Gets a server event that can be included in the event set.
Public propertyStatic member UpdateStatistics Gets a server event that can be included in the event set.

Top

Methods

  Name Description
Public methodStatic member Add Returns a server event set after adding a new server event to the event set.
Public methodStatic member BitwiseOr Returns a ServerEventSet as a result of a bitwise OR operation on two ServerEvent objects.
Public method Equals Determines whether the referenced server 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.Serves as a hash function, suitable for use in hashing algorithms and data structures like a hash table. (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 server event set by performing an addition operation on two ServerEvent objects.
Public operatorStatic member BitwiseOr Creates a server event set by performing a bitwise OR operation on two ServerEvent objects.
Public operatorStatic member Equality Creates a server event set by performing an equality operation on two ServerEvent objects.
Public operatorStatic member Implicit(ServerEvent to ServerEventSet) Creates a server event set by performing an implicit operation on a ServerEvent object.
Public operatorStatic member Inequality Creates a server event set by performing an inequality operation on two ServerEvent objects.

Top

Remarks

The ServerEvent object contains a property for each event to which the instance of SQL Server can respond. The actual set of events is specified using the ServerEventSet 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