Classe SqlAssemblyEventSet

The SqlAssemblyEventSet object represents a set of assembly events.

Gerarchia di ereditarietà

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

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

Sintassi

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

Nel tipo SqlAssemblyEventSet sono esposti i membri seguenti.

Costruttori

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

In alto

Proprietà

  Nome Descrizione
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.
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.
Proprietà pubblica NumberOfElements Gets the number of elements in the event set. Esegue l'override di EventSetBase.NumberOfElements.
Proprietà protetta Storage Gets or sets the bit array for event set storage. Ereditato da EventSetBase.

In alto

Metodi

  Nome Descrizione
Metodo pubblico Add(SqlAssemblyEvent) Returns an SQL assembly event set after adding a new SQL assembly event to the referenced event set.
Metodo pubblicoMembro statico Add(SqlAssemblyEventSet, SqlAssemblyEvent) Returns an SQL assembly event set after adding a new SQL assembly event to the specified event set.
Metodo pubblico Copy Returns a copy of the event set. 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 an SQL assembly event set after subtracting a new SQL assembly event from the specified event set.
Metodo pubblico ToString Returns a string that represents the SqlAssemblyEventSet object. Esegue l'override di Object.ToString().

In alto

Operatori

  Nome Descrizione
Operatore pubblicoMembro statico Addition Creates an assembly event set by performing an addition operation on a SqlAssemblyEvent object and a SqlAssemblyEventSet object.
Operatore pubblicoMembro statico Subtraction Creates an assembly event set by performing a subtraction operation on a SqlAssemblyEvent object and a SqlAssemblyEventSet object.

In alto

Osservazioni

SQL Server provides events subscription for all SMO objects that have server event support. The SqlAssembly object has event support for the events represented by SqlAssemblyEventSet properties.

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