ServiceQueueEventSet-Klasse

The ServiceQueueEventSet object represents a set of SQL Server service queue events.

Vererbungshierarchie

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

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

Syntax

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

Der ServiceQueueEventSet-Typ macht folgende Elemente verfügbar.

Konstruktoren

  Name Beschreibung
Öffentliche Methode ServiceQueueEventSet() Initializes a new instance of the ServiceQueueEventSet class.
Öffentliche Methode ServiceQueueEventSet(ServiceQueueEvent) Initializes a new instance of the ServiceQueueEventSet class with a specified event.
Öffentliche Methode ServiceQueueEventSet(array<ServiceQueueEvent[]) Initializes a new instance of the ServiceQueueEventSet class with the specified events.
Öffentliche Methode ServiceQueueEventSet(ServiceQueueEventSet) Initializes a new instance of the ServiceQueueEventSet class with the specified events.

Zum Anfang

Eigenschaften

  Name Beschreibung
Öffentliche Eigenschaft 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.
Öffentliche Eigenschaft BrokerQueueDisabled 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 disabled.
Öffentliche Eigenschaft 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.
Öffentliche Eigenschaft NumberOfElements Gets the number of events in the event set. (Überschreibt EventSetBase.NumberOfElements.)
Öffentliche Eigenschaft QueueActivation 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 activated.
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(ServiceQueueEvent) Returns a Service Broker queue event set after adding a new queue event to the referenced set.
Öffentliche MethodeStatisches Element Add(ServiceQueueEventSet, ServiceQueueEvent) Returns a Service Broker queue event set after adding a new queue event to the specified set.
Öffentliche Methode Copy Returns a copy of the event set. (Überschreibt EventSetBase.Copy().)
Öffentliche Methode Equals (Geerbt von Object.)
Öffentliche Methode GetHashCode (Geerbt von Object.)
Öffentliche Methode GetType (Geerbt von Object.)
Öffentliche Methode Remove Removes an event from the event set.
Öffentliche MethodeStatisches Element Subtract Returns a Service Broker queue event set after subtracting a queue event from the specified set.
Öffentliche Methode ToString Returns a string that represents the ServiceQueueEventSet object. (Überschreibt Object.ToString().)

Zum Anfang

Operatoren

  Name Beschreibung
Öffentlicher OperatorStatisches Element Addition Creates a service queue trace event set by performing an addition operation on a ServiceQueueEvent object and a ServiceQueueEventSet object.
Öffentlicher OperatorStatisches Element Subtraction Creates a service queue event set by performing a subtraction operation on a ServiceQueueEvent object and a ServiceQueueEventSet object.

Zum Anfang

Hinweise

The ServiceQueueEventSet object contains a property for each event to which the service queue responds.

Thread Safety

Alle öffentlichen, statischen Elemente dieses Typs (Shared in Microsoft Visual Basic) sind für Vorgänge mit mehreren Threads sicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.

Beispiele

Behandeln von SMO-Ereignissen

Threadsicherheit

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

Siehe auch

Verweis

Microsoft.SqlServer.Management.Smo-Namespace