Compartilhar via


Classe SqlAssemblyEventSet

The SqlAssemblyEventSet object represents a set of assembly events.

Hierarquia de herança

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

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

Sintaxe

'Declaração
Public NotInheritable Class SqlAssemblyEventSet _
    Inherits EventSetBase
'Uso
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

O tipo SqlAssemblyEventSet expõe os membros a seguir.

Construtores

  Nome Descrição
Método público SqlAssemblyEventSet() Initializes a new instance of the SqlAssemblyEventSet class.
Método público SqlAssemblyEventSet(SqlAssemblyEvent) Initializes a new instance of the SqlAssemblyEventSet class with a specified event.
Método público SqlAssemblyEventSet(array<SqlAssemblyEvent[]) Initializes a new instance of the SqlAssemblyEventSet class with a specified set of events.
Método público SqlAssemblyEventSet(SqlAssemblyEventSet) Initializes a new instance of the SqlAssemblyEventSet class with a specified set of events.

Início

Propriedades

  Nome Descrição
Propriedade pública 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.
Propriedade pública 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.
Propriedade pública NumberOfElements Gets the number of elements in the event set. (Substitui EventSetBase.NumberOfElements.)
Propriedade protegida Storage Gets or sets the bit array for event set storage. (Herdado de EventSetBase.)

Início

Métodos

  Nome Descrição
Método público Add(SqlAssemblyEvent) Returns an SQL assembly event set after adding a new SQL assembly event to the referenced event set.
Método públicoMembro estático Add(SqlAssemblyEventSet, SqlAssemblyEvent) Returns an SQL assembly event set after adding a new SQL assembly event to the specified event set.
Método público Copy Returns a copy of the event set. (Substitui EventSetBase.Copy().)
Método público Equals (Herdado de Object.)
Método público GetHashCode (Herdado de Object.)
Método público GetType (Herdado de Object.)
Método público Remove Removes an event from the event set.
Método públicoMembro estático Subtract Returns an SQL assembly event set after subtracting a new SQL assembly event from the specified event set.
Método público ToString Returns a string that represents the SqlAssemblyEventSet object. (Substitui Object.ToString().)

Início

Operadores

  Nome Descrição
Operador públicoMembro estático Addition Creates an assembly event set by performing an addition operation on a SqlAssemblyEvent object and a SqlAssemblyEventSet object.
Operador públicoMembro estático Subtraction Creates an assembly event set by performing a subtraction operation on a SqlAssemblyEvent object and a SqlAssemblyEventSet object.

Início

Comentários

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

Qualquer membro público estático (Compartilhado no Microsoft Visual Basic) desse tipo é seguro para operações multi-threaded. Não há garantia de que qualquer membro de instância seja seguro para threads.

Exemplos

Manipulando eventos SMO

Segurança de thread

Qualquer membro público static (Shared no Visual Basic) desse tipo é seguro para threads. Não há garantia de que qualquer membro de instância seja seguro para threads.

Consulte também

Referência

Namespace Microsoft.SqlServer.Management.Smo