Compartir a través de


Clase ViewEventSet

The ViewEventSet object represents a set of view events.

Jerarquía de herencia

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

Espacio de nombres:  Microsoft.SqlServer.Management.Smo
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

'Declaración
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

El tipo ViewEventSet expone los siguientes miembros.

Constructores

  Nombre Descripción
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.

Arriba

Propiedades

  Nombre Descripción
Propiedad pública AlterFulltextIndex Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Propiedad pública AlterIndex Gets or sets a Boolean value that specifies whether the AlterIndex event is included in the event set.
Propiedad 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.
Propiedad pública CreateFulltextIndex Gets or sets a Boolean property value that specifies whether the event is included in the event set
Propiedad 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.
Propiedad pública CreateSpatialIndex Gets or sets a Boolean property value that specifies whether the event is included in the event set
Propiedad 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.
Propiedad 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.
Propiedad pública DropFulltextIndex Gets or sets a Boolean property value that specifies whether the event is included in the event set
Propiedad 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.
Propiedad 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.
Propiedad 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.
Propiedad 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. (Invalida EventSetBase. . :: . .NumberOfElements.)
Propiedad protegida Storage Gets or sets the bit array for event set storage. (Se hereda de EventSetBase.)
Propiedad 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.

Arriba

Métodos

  Nombre Descripción
Método público Add(ViewEvent) Adds a ViewEvent object to the ViewEventSet object.
Método públicoMiembro estático Add(ViewEventSet, ViewEvent) Adds an event to the event set.
Método público Copy Returns a copy of the event set. (Invalida EventSetBase. . :: . .Copy() () () ().)
Método público Equals (Se hereda de Object.)
Método protegido Finalize (Se hereda de Object.)
Método protegido FitsMask Specifies whether the EventSetBase object fits the specified mask. (Se hereda de EventSetBase.)
Método público GetHashCode (Se hereda de Object.)
Método público GetType (Se hereda de Object.)
Método protegido HasCommonBits Specifies whether the EventSetBase object has common bits with another specified EventSetBase object. (Se hereda de EventSetBase.)
Método protegido MemberwiseClone (Se hereda de Object.)
Método público Remove Removes an event from the event set.
Método protegido SetValue Sets the bit value at the specified index position. (Se hereda de EventSetBase.)
Método públicoMiembro estático Subtract Removes a view event from the event set.
Método público ToString Returns a String that represents the ViewEventSet object. (Invalida Object. . :: . .ToString() () () ().)

Arriba

Operadores

  Nombre Descripción
Operador públicoMiembro estático Addition Creates a view event set by performing an addition operation on a ViewEvent object and a ViewEventSet object.
Operador públicoMiembro estático Subtraction Creates a view event set by performing a subtraction operation on a ViewEvent object and a ViewEventSet object.

Arriba

Comentarios

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

Todos los miembros estáticos (compartidos en Microsoft Visual Basic) públicos de este tipo son seguros para operaciones multiproceso. No se garantiza que los miembros de instancia sean seguros para subprocesos.

Seguridad para subprocesos

Cualquier miembro público static (Shared en Visual Basic) de este tipo es seguro para subprocesos. No se garantiza que los miembros de instancia sean seguros para subprocesos.