Класс StoredProcedureEventSet
The StoredProcedureEventSet object represents a set of stored procedure events.
Иерархия наследования
System.Object
Microsoft.SqlServer.Management.Smo.EventSetBase
Microsoft.SqlServer.Management.Smo.StoredProcedureEventSet
Пространство имен: Microsoft.SqlServer.Management.Smo
Сборка: Microsoft.SqlServer.Smo (в Microsoft.SqlServer.Smo.dll)
Синтаксис
'Декларация
Public NotInheritable Class StoredProcedureEventSet _
Inherits EventSetBase
'Применение
Dim instance As StoredProcedureEventSet
public sealed class StoredProcedureEventSet : EventSetBase
public ref class StoredProcedureEventSet sealed : public EventSetBase
[<SealedAttribute>]
type StoredProcedureEventSet =
class
inherit EventSetBase
end
public final class StoredProcedureEventSet extends EventSetBase
Тип StoredProcedureEventSet обеспечивает доступ к следующим элементам.
Конструкторы
Имя | Описание | |
---|---|---|
StoredProcedureEventSet() | Initializes a new instance of the StoredProcedureEventSet class. | |
StoredProcedureEventSet(StoredProcedureEvent) | Initializes a new instance of the StoredProcedureEventSet class with a specified event. | |
StoredProcedureEventSet(array<StoredProcedureEvent[]) | Initializes a new instance of the StoredProcedureEventSet class with a specified set of events. | |
StoredProcedureEventSet(StoredProcedureEventSet) | Initializes a new instance of the StoredProcedureEventSet class with a specified set of events. |
В начало
Свойства
Имя | Описание | |
---|---|---|
AlterProcedure | Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a stored procedure is altered. | |
DropProcedure | Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a stored procedure 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(StoredProcedureEvent) | Returns a set of stored procedure events after adding a new stored procedure event to the referenced event set. | |
Add(StoredProcedureEventSet, StoredProcedureEvent) | Returns a set of stored procedure events after adding a new stored procedure event to the specified event set. | |
Copy | Returns a copy of the event set. (Переопределяет EventSetBase.Copy().) | |
Equals | (Производный от Object.) | |
GetHashCode | (Производный от Object.) | |
GetType | (Производный от Object.) | |
Remove | Removes an event from the event set. | |
Subtract | Returns a set of stored procedure events after subtracting a stored procedure event from the specified event set. | |
ToString | Returns a string that represents the StoredProcedureEventSet object. (Переопределяет Object.ToString().) |
В начало
Операторы
Имя | Описание | |
---|---|---|
Addition | Creates a stored procedure event set by performing an addition operation on a StoredProcedureEvent object and a StoredProcedureEventSet object. | |
Subtraction | Creates a stored procedure event set by performing a subtraction operation on a StoredProcedureEvent object and a StoredProcedureEventSet object. |
В начало
Замечания
SQL Server provides events subscriptions for all SMO objects that have server event support. The StoredProcedure object has event support for the events that are represented by StoredProcedureEventSet properties.
Thread Safety
Все общие статические члены этого типа (Shared в Microsoft Visual Basic) можно использовать в многопоточных операциях. Потокобезопасная работа с членами экземпляров типа не гарантируется.
Примеры
Безопасность многопоточности
Любые открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность с элементами экземпляров не гарантируется.