Classe ObjectEventSet
The ObjectEventSet object represents a SQL Server set of object events.
Hiérarchie d'héritage
System.Object
Microsoft.SqlServer.Management.Smo.EventSetBase
Microsoft.SqlServer.Management.Smo.ObjectEventSet
Espace de noms : Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Syntaxe
'Déclaration
Public NotInheritable Class ObjectEventSet _
Inherits EventSetBase
'Utilisation
Dim instance As ObjectEventSet
public sealed class ObjectEventSet : EventSetBase
public ref class ObjectEventSet sealed : public EventSetBase
[<SealedAttribute>]
type ObjectEventSet =
class
inherit EventSetBase
end
public final class ObjectEventSet extends EventSetBase
Le type ObjectEventSet expose les membres suivants.
Constructeurs
Nom | Description | |
---|---|---|
ObjectEventSet() | Initializes a new instance of the ObjectEventSet class. | |
ObjectEventSet(ObjectEvent) | Initializes a new instance of the ObjectEventSet class with the specified set of event. | |
ObjectEventSet(array<ObjectEvent[]) | Initializes a new instance of the ObjectEventSet class with the specified set of events. | |
ObjectEventSet(ObjectEventSet) | Initializes a new instance of the ObjectEventSet class with a specified set of events. |
Haut de la page
Propriétés
Nom | Description | |
---|---|---|
Alter | Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when the properties of an object are modified. | |
Drop | Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when an object is dropped. | |
NumberOfElements | Gets the number of events in the event set. (remplace EventSetBase.NumberOfElements.) | |
Storage | Gets or sets the bit array for event set storage. (hérité de EventSetBase.) |
Haut de la page
Méthodes
Nom | Description | |
---|---|---|
Add(ObjectEvent) | Adds an ObjectEvent object to the ObjectEventSet object. | |
Add(ObjectEventSet, ObjectEvent) | Adds an ObjectEvent object to a ObjectEventSet. | |
Copy | Returns a copy of the ObjectEventSet object. (remplace EventSetBase.Copy().) | |
Equals | (hérité de Object.) | |
GetHashCode | (hérité de Object.) | |
GetType | (hérité de Object.) | |
Remove | Removes an event from the event set. | |
Subtract | Subtracts a ObjectEvent from a [T:Microsoft.SqlServer.Management.Smo.ObjectEventSet.] | |
ToString | Returns a string that represents the ObjectEventSet object. (remplace Object.ToString().) |
Haut de la page
Opérateurs
Nom | Description | |
---|---|---|
Addition | Creates an object event set by performing an addition operation on an ObjectEvent object and an ObjectEventSet object. | |
Subtraction | Creates an object event set by performing a subtraction operation on an ObjectEvent object and an ObjectEventSet object. |
Haut de la page
Notes
The events in the object event set are generated by various SMO objects that represent the SQL Server objects.
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
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.