Compartilhar via


Classe ViewEventSet

The ViewEventSet object represents a set of view events.

Hierarquia de herança

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

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

Sintaxe

'Declaração
Public NotInheritable Class ViewEventSet _
    Inherits EventSetBase
'Uso
Dim instance As ViewEventSet
public sealed class ViewEventSet : EventSetBase
public ref class ViewEventSet sealed : public EventSetBase
[<SealedAttribute>]
type ViewEventSet =  
    class 
        inherit EventSetBase 
    end
public final class ViewEventSet extends EventSetBase

O tipo ViewEventSet expõe os membros a seguir.

Construtores

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

Início

Propriedades

  Nome Descrição
Propriedade pública AlterFulltextIndex Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Propriedade pública AlterIndex Gets or sets a Boolean value that specifies whether the AlterIndex event is included in the event set.
Propriedade pública AlterView Gets or sets a Boolean property value that specifies whether the event that occurs when a view is altered is included in the event set.
Propriedade pública CreateFulltextIndex Gets or sets a Boolean property value that specifies whether the event is included in the event set
Propriedade pública CreateIndex Gets or sets a Boolean property value that specifies whether the event that occurs when an index is created is included in the event set.
Propriedade pública CreateSpatialIndex Gets or sets a Boolean property value that specifies whether the event is included in the event set
Propriedade pública CreateStatistics Gets or sets a Boolean property value that specifies whether the event that occurs when a statistics counter is created is included in the event set.
Propriedade pública CreateXmlIndex Gets or sets a Boolean property value that specifies whether the event that occurs when an XML index is created and included in the event set.
Propriedade pública DropFulltextIndex Gets or sets a Boolean property value that specifies whether the event is included in the event set
Propriedade pública DropIndex Gets or sets a Boolean property value that specifies whether the event that occurs when an index is dropped is included in the event set.
Propriedade pública DropStatistics Gets or sets a Boolean property value that specifies whether the event that occurs when a statistic counter is dropped is included in the event set.
Propriedade pública DropView Gets or sets a Boolean property value that specifies whether the event that occurs when a view is dropped is included in the event set.
Propriedade pública NumberOfElements Gets or sets a Boolean property value that specifies whether the event that occurs when the number of elements changes is included in the event set. (Substitui EventSetBase.NumberOfElements.)
Propriedade protegida Storage Gets or sets the bit array for event set storage. (Herdado de EventSetBase.)
Propriedade pública UpdateStatistics Gets or sets a Boolean property value that specifies whether the event that occurs when statistics are updated is included in the event set.

Início

Métodos

  Nome Descrição
Método público Add(ViewEvent) Adds a ViewEvent object to the ViewEventSet object.
Método públicoMembro estático Add(ViewEventSet, ViewEvent) Adds an event to the 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 Removes a view event from the event set.
Método público ToString Returns a String that represents the ViewEventSet object. (Substitui Object.ToString().)

Início

Operadores

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

Início

Comentários

SQL Server provides events subscription for all SMO objects that have server event support. The View object has event support for the events that are represented by ViewEventSet 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