Класс ObjectEventSet

The ObjectEventSet object represents a SQL Server set of object events.

Иерархия наследования

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

Пространство имен:  Microsoft.SqlServer.Management.Smo
Сборка:  Microsoft.SqlServer.Smo (в Microsoft.SqlServer.Smo.dll)

Синтаксис

'Декларация
Public NotInheritable Class ObjectEventSet _
    Inherits EventSetBase
'Применение
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

Тип ObjectEventSet обеспечивает доступ к следующим элементам.

Конструкторы

  Имя Описание
Открытый метод 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.

В начало

Свойства

  Имя Описание
Открытое свойство 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. (Переопределяет EventSetBase. . :: . .NumberOfElements.)
Защищенное свойство Storage Gets or sets the bit array for event set storage. (Производный от EventSetBase.)

В начало

Методы

  Имя Описание
Открытый метод Add(ObjectEvent) Adds an ObjectEvent object to the ObjectEventSet object.
Открытый методСтатический элемент Add(ObjectEventSet, ObjectEvent) Adds a ObjectEvent object to a ObjectEventSet.
Открытый метод Copy Returns a copy of the ObjectEventSet object. (Переопределяет EventSetBase. . :: . .Copy() () () ().)
Открытый метод Equals (Производный от Object.)
Защищенный метод Finalize (Производный от Object.)
Защищенный метод FitsMask Specifies whether the EventSetBase object fits the specified mask. (Производный от EventSetBase.)
Открытый метод GetHashCode (Производный от Object.)
Открытый метод GetType (Производный от Object.)
Защищенный метод HasCommonBits Specifies whether the EventSetBase object has common bits with another specified EventSetBase object. (Производный от EventSetBase.)
Защищенный метод MemberwiseClone (Производный от Object.)
Открытый метод Remove Removes an event from the event set.
Защищенный метод SetValue Sets the bit value at the specified index position. (Производный от EventSetBase.)
Открытый методСтатический элемент Subtract Subtracts a ObjectEvent from a [T:Microsoft.SqlServer.Management.Smo.ObjectEventSet.]
Открытый метод ToString Returns a string that represents the ObjectEventSet object. (Переопределяет Object. . :: . .ToString() () () ().)

В начало

Операторы

  Имя Описание
Открытый операторСтатический элемент 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.

В начало

Замечания

The events in the object event set are generated by various SMO objects that represent the SQL Server objects.

Thread Safety

Все общие статические члены этого типа (Shared в Microsoft Visual Basic) можно использовать в многопоточных операциях. Безопасная многопоточная работа с членами экземпляров типа не гарантируется.

Безопасность многопоточности

Любые открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность с элементами экземпляров не гарантируется.