Partager via


Classe ViewEventSet

The ViewEventSet object represents a set of view events.

Hiérarchie d'héritage

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

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
Public NotInheritable Class ViewEventSet _
    Inherits EventSetBase
'Utilisation
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

Le type ViewEventSet expose les membres suivants.

Constructeurs

  Nom Description
Méthode publique ViewEventSet() Initializes a new instance of the ViewEventSet class.
Méthode publique ViewEventSet(ViewEvent) Initializes a new instance of the ViewEventSet class with a specified event.
Méthode publique ViewEventSet(array<ViewEvent[]) Initializes a new instance of the ViewEventSet class with a specified set of events.
Méthode publique ViewEventSet(ViewEventSet) Initializes a new instance of the ViewEventSet class with a specified set of events.

Haut de la page

Propriétés

  Nom Description
Propriété publique AlterFulltextIndex Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Propriété publique AlterIndex Gets or sets a Boolean value that specifies whether the AlterIndex event is included in the event set.
Propriété publique 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.
Propriété publique CreateFulltextIndex Gets or sets a Boolean property value that specifies whether the event is included in the event set
Propriété publique 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.
Propriété publique CreateSpatialIndex Gets or sets a Boolean property value that specifies whether the event is included in the event set
Propriété publique 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.
Propriété publique 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.
Propriété publique DropFulltextIndex Gets or sets a Boolean property value that specifies whether the event is included in the event set
Propriété publique 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.
Propriété publique 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.
Propriété publique 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.
Propriété publique 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. (remplace EventSetBase.NumberOfElements.)
Propriété protégée Storage Gets or sets the bit array for event set storage. (hérité de EventSetBase.)
Propriété publique 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.

Haut de la page

Méthodes

  Nom Description
Méthode publique Add(ViewEvent) Adds a ViewEvent object to the ViewEventSet object.
Méthode publiqueMembre statique Add(ViewEventSet, ViewEvent) Adds an event to the event set.
Méthode publique Copy Returns a copy of the event set. (remplace EventSetBase.Copy().)
Méthode publique Equals (hérité de Object.)
Méthode publique GetHashCode (hérité de Object.)
Méthode publique GetType (hérité de Object.)
Méthode publique Remove Removes an event from the event set.
Méthode publiqueMembre statique Subtract Removes a view event from the event set.
Méthode publique ToString Returns a String that represents the ViewEventSet object. (remplace Object.ToString().)

Haut de la page

Opérateurs

  Nom Description
Opérateur publicMembre statique Addition Creates a view event set by performing an addition operation on a ViewEvent object and a ViewEventSet object.
Opérateur publicMembre statique Subtraction Creates a view event set by performing a subtraction operation on a ViewEvent object and a ViewEventSet object.

Haut de la page

Notes

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

Tout membre statique public (Partagé dans Microsoft Visual Basic) de ce type est sûr dans le cadre des opérations à plusieurs threads. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.

Exemples

Gestion des événements SMO

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.

Voir aussi

Référence

Espace de noms Microsoft.SqlServer.Management.Smo