Freigeben über


StoredProcedureEventSet-Klasse

The StoredProcedureEventSet object represents a set of stored procedure events.

Vererbungshierarchie

System. . :: . .Object
  Microsoft.SqlServer.Management.Smo. . :: . .EventSetBase
    Microsoft.SqlServer.Management.Smo..::..StoredProcedureEventSet

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

Syntax

'Declaration
Public NotInheritable Class StoredProcedureEventSet _
    Inherits EventSetBase
'Usage
Dim instance As StoredProcedureEventSet
public sealed class StoredProcedureEventSet : EventSetBase
public ref class StoredProcedureEventSet sealed : public EventSetBase
[<SealedAttribute>]
type StoredProcedureEventSet =  
    class
        inherit EventSetBase
    end
public final class StoredProcedureEventSet extends EventSetBase

Der StoredProcedureEventSet-Typ macht folgende Elemente verfügbar.

Konstruktoren

  Name Beschreibung
Öffentliche Methode StoredProcedureEventSet() () () () Initializes a new instance of the StoredProcedureEventSet class.
Öffentliche Methode StoredProcedureEventSet(StoredProcedureEvent) Initializes a new instance of the StoredProcedureEventSet class with a specified event.
Öffentliche Methode StoredProcedureEventSet(array<StoredProcedureEvent> [] () [] []) Initializes a new instance of the StoredProcedureEventSet class with a specified set of events.
Öffentliche Methode StoredProcedureEventSet(StoredProcedureEventSet) Initializes a new instance of the StoredProcedureEventSet class with a specified set of events.

Zum Anfang

Eigenschaften

  Name Beschreibung
Öffentliche Eigenschaft 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.
Öffentliche Eigenschaft 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.
Öffentliche Eigenschaft NumberOfElements Gets the number of events in the event set. (Überschreibt EventSetBase. . :: . .NumberOfElements.)
Geschützte Eigenschaft Storage Gets or sets the bit array for event set storage. (Geerbt von EventSetBase.)

Zum Anfang

Methoden

  Name Beschreibung
Öffentliche Methode Add(StoredProcedureEvent) Returns a set of stored procedure events after adding a new stored procedure event to the referenced event set.
Öffentliche MethodeStatisches Element Add(StoredProcedureEventSet, StoredProcedureEvent) Returns a set of stored procedure events after adding a new stored procedure event to the specified event set.
Öffentliche Methode Copy Returns a copy of the event set. (Überschreibt EventSetBase. . :: . .Copy() () () ().)
Öffentliche Methode Equals (Geerbt von Object.)
Geschützte Methode Finalize (Geerbt von Object.)
Geschützte Methode FitsMask Specifies whether the EventSetBase object fits the specified mask. (Geerbt von EventSetBase.)
Öffentliche Methode GetHashCode (Geerbt von Object.)
Öffentliche Methode GetType (Geerbt von Object.)
Geschützte Methode HasCommonBits Specifies whether the EventSetBase object has common bits with another specified EventSetBase object. (Geerbt von EventSetBase.)
Geschützte Methode MemberwiseClone (Geerbt von Object.)
Öffentliche Methode Remove Removes an event from the event set.
Geschützte Methode SetValue Sets the bit value at the specified index position. (Geerbt von EventSetBase.)
Öffentliche MethodeStatisches Element Subtract Returns a set of stored procedure events after subtracting a stored procedure event from the specified event set.
Öffentliche Methode ToString Returns a string that represents the StoredProcedureEventSet object. (Überschreibt Object. . :: . .ToString() () () ().)

Zum Anfang

Operatoren

  Name Beschreibung
Öffentlicher OperatorStatisches Element Addition Creates a stored procedure event set by performing an addition operation on a StoredProcedureEvent object and a StoredProcedureEventSet object.
Öffentlicher OperatorStatisches Element Subtraction Creates a stored procedure event set by performing a subtraction operation on a StoredProcedureEvent object and a StoredProcedureEventSet object.

Zum Anfang

Hinweise

SQL Server provides events subscriptions for all SMO objects that have server event support. The StoredProcedure object has event support for the events that are represented by StoredProcedureEventSet properties.

Thread Safety

Alle öffentlichen, statischen Elemente dieses Typs (Shared in Microsoft Visual Basic) sind für Vorgänge mit mehreren Threads sicher. Für Instanzelemente kann nicht sichergestellt werden, dass sie für Threads sicher sind.

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic)-Elemente dieses Typs sind Threadsicher. Für Instanzelemente wird die Threadsicherheit nicht gewährleistet.