Поделиться через


Элементы Alert

The Alert class represents a Microsoft SQL Server Agent alert.

Тип Alert предоставляет доступ к следующим элементам.

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

  Имя Описание
Открытый метод Alert() () () () Initializes a new instance of the Alert class.
Открытый метод Alert(JobServer, String) Initializes a new instance of the Alert class on the specified instance of SQL Server Agent and with the specified name

В начало

Методы

  Имя Описание
Защищенный метод AddDatabaseContext (Наследуется из SqlSmoObject.)
Открытый метод AddNotification Designates an operator that receives a notification message when the alert is raised.
Открытый метод Alter Updates any Alert object property changes on instance of Microsoft SQL Server .
Защищенный метод AlterImpl (Наследуется из SqlSmoObject.)
Защищенный метод AlterImplFinish (Наследуется из SqlSmoObject.)
Защищенный метод AlterImplInit (Наследуется из SqlSmoObject.)
Защищенный метод AlterImplWorker (Наследуется из SqlSmoObject.)
Защищенный метод BindDefaultImpl (Наследуется из SqlSmoObject.)
Защищенный метод BindRuleImpl (Наследуется из SqlSmoObject.)
Защищенный метод CheckCollation (Наследуется из SqlSmoObject.)
Защищенный метод CheckObjectState() () () () Validates the state of the referenced object. (Наследуется из SqlSmoObject.)
Защищенный метод CheckObjectState(Boolean) Validates the state of the referenced object with the option to specify that an exception is thrown if the object is not yet created. (Наследуется из SqlSmoObject.)
Защищенный метод CheckObjectStateImpl (Наследуется из SqlSmoObject.)
Защищенный метод CheckVersion100 (Наследуется из SqlSmoObject.)
Защищенный метод CheckVersion80 Checks the validity of the object on SQL Server 2000. (Наследуется из SqlSmoObject.)
Защищенный метод CheckVersion80SP3 Checks the validity of the object on SQL Server 2000 SP3. (Наследуется из SqlSmoObject.)
Защищенный метод CheckVersion90 Check the validity of the object on SQL Server 2005. (Наследуется из SqlSmoObject.)
Защищенный метод CheckVersionBelow90 (Наследуется из SqlSmoObject.)
Защищенный метод CleanObject (Наследуется из SqlSmoObject.)
Открытый метод Create Creates an alert on the instance of Microsoft SQL Server as defined by the Alert object.
Защищенный метод CreateImpl (Наследуется из SqlSmoObject.)
Защищенный метод CreateImplFinish (Наследуется из SqlSmoObject.)
Защищенный метод CreateImplInit (Наследуется из SqlSmoObject.)
Открытый метод Discover (Наследуется из SqlSmoObject.)
Открытый метод Drop Removes the alert.
Защищенный метод DropImpl (Наследуется из SqlSmoObject.)
Защищенный метод DropImplWorker (Наследуется из SqlSmoObject.)
Открытый метод EnumNotifications() () () () Enumerates a list of all notifications defined on the alert.
Открытый метод EnumNotifications(String) Enumerates a list of notification methods defined on the alert that are restricted to the specified operator.
Открытый метод EnumNotifications(NotifyMethods)
Открытый метод EnumNotifications(NotifyMethods, String)
Защищенный метод EnumScriptImpl (Наследуется из SqlSmoObject.)
Защищенный метод EnumScriptImplWorker (Наследуется из SqlSmoObject.)
Открытый метод Equals (Наследуется из Object.)
Защищенный метод Finalize (Наследуется из Object.)
Защищенный метод FormatSqlVariant (Наследуется из SqlSmoObject.)
Защищенный метод GenerateDataSpaceFileStreamScript (Наследуется из SqlSmoObject.)
Защищенный метод GenerateDataSpaceScript (Наследуется из SqlSmoObject.)
Защищенный метод GetBindDefaultScript (Наследуется из SqlSmoObject.)
Защищенный метод GetBindRuleScript (Наследуется из SqlSmoObject.)
Защищенный метод GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%) (Наследуется из SqlSmoObject.)
Защищенный метод GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) (Наследуется из SqlSmoObject.)
Защищенный метод GetDateTimeParameter (Наследуется из SqlSmoObject.)
Защищенный метод GetDateTimeParameterAsInt (Наследуется из SqlSmoObject.)
Защищенный метод GetDBName Gets the database name that is associated with the object. (Наследуется из AgentObjectBase.)
Защищенный метод GetEnumParameter (Наследуется из SqlSmoObject.)
Защищенный метод GetFragOptionString (Наследуется из SqlSmoObject.)
Защищенный метод GetGuidParameter (Наследуется из SqlSmoObject.)
Открытый метод GetHashCode (Наследуется из Object.)
Защищенный метод GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%) (Наследуется из SqlSmoObject.)
Защищенный метод GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) (Наследуется из SqlSmoObject.)
Защищенный метод GetPropValue (Наследуется из SqlSmoObject.)
Защищенный метод GetPropValueOptional (Наследуется из SqlSmoObject.)
Защищенный метод GetPropValueOptionalAllowNull (Наследуется из SqlSmoObject.)
Защищенный метод GetRealValue (Наследуется из SqlSmoObject.)
Защищенный метод GetScriptingOptionsForCreate (Наследуется из SqlSmoObject.)
Защищенный метод GetServerName Gets the name of the instance of SQL Server with which the object is associated. (Наследуется из SqlSmoObject.)
Защищенный метод GetServerObject (Наследуется из SqlSmoObject.)
Защищенный метод GetSqlServerVersionName Gets the version name of the instance of SQL Server with which the object is associated. (Наследуется из SqlSmoObject.)
Защищенный метод GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%) (Наследуется из SqlSmoObject.)
Защищенный метод GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) (Наследуется из SqlSmoObject.)
Защищенный метод GetTimeSpanParameterAsInt (Наследуется из SqlSmoObject.)
Открытый метод GetType (Наследуется из Object.)
Защищенный метод GetUrnRecursive(StringBuilder) (Наследуется из SqlSmoObject.)
Защищенный метод GetUrnRecursive(StringBuilder, UrnIdOption) (Наследуется из SqlSmoObject.)
Защищенный метод ImplInitialize (Наследуется из SqlSmoObject.)
Открытый метод Initialize() () () () Initializes the object and forces the properties be loaded. (Наследуется из SqlSmoObject.)
Открытый метод Initialize(Boolean) Initializes the object and forces the properties be loaded. (Наследуется из SqlSmoObject.)
Защищенный метод IsObjectDirty Verifies whether the object properties have been modified and the changes have not yet been persisted on the instance of SQL Server. (Наследуется из SqlSmoObject.)
Защищенный метод IsObjectInitialized Verifies whether the object has been initialized. (Наследуется из SqlSmoObject.)
Защищенный метод IsObjectInSpace Verifies whether the object is isolated or connected to the instance of SQL Server. (Наследуется из SqlSmoObject.)
Защищенный метод IsVersion80SP3 (Наследуется из SqlSmoObject.)
Защищенный метод MarkDropped (Наследуется из SqlSmoObject.)
Защищенный метод MarkForDropImpl (Наследуется из SqlSmoObject.)
Защищенный метод MemberwiseClone (Наследуется из Object.)
Защищенный метод PostAlter (Наследуется из SqlSmoObject.)
Защищенный метод PostCreate (Наследуется из SqlSmoObject.)
Защищенный метод PostDrop (Наследуется из SqlSmoObject.)
Открытый метод Refresh Refreshes the object and retrieves properties when the object is next accessed. (Наследуется из SqlSmoObject.)
Открытый метод RemoveNotification Removes the notification of an operator from the alert definition.
Открытый метод Rename Renames the alert.
Защищенный метод RenameImpl This method supports the SMO infrastructure and is not intended to be used directly from your code. (Наследуется из NamedSmoObject.)
Защищенный метод RenameImplWorker This method supports the SMO infrastructure and is not intended to be used directly from your code. (Наследуется из NamedSmoObject.)
Открытый метод ResetOccurrenceCount Resets the alert occurrence count back to zero.
Открытый метод Script() () () () Generates a Transact-SQL script that can be used to re-create the Microsoft SQL Server Agent alert.
Открытый метод Script(ScriptingOptions) Generates a Transact-SQL script that can be used to re-create the Microsoft SQL Server Agent alert as specified by the scripting options.
Защищенный метод ScriptAlter (Наследуется из SqlSmoObject.)
Защищенный метод ScriptChangeOwner This method supports the SMO infrastructure and is not intended to be used directly from your code. (Наследуется из NamedSmoObject.)
Защищенный метод ScriptCreate (Наследуется из SqlSmoObject.)
Защищенный метод ScriptDdl (Наследуется из SqlSmoObject.)
Защищенный метод ScriptDrop (Наследуется из SqlSmoObject.)
Защищенный метод ScriptImpl() () () () (Наследуется из SqlSmoObject.)
Защищенный метод ScriptImpl(ScriptingOptions) (Наследуется из SqlSmoObject.)
Защищенный метод ScriptImplWorker (Наследуется из SqlSmoObject.)
Защищенный метод ScriptRename This method supports the SMO infrastructure and is not intended to be used directly from your code. (Наследуется из NamedSmoObject.)
Защищенный метод SetParentImpl (Наследуется из SqlSmoObject.)
Открытый метод ToString Returns a String that represents the referenced object. (Наследуется из SqlSmoObject.)
Защищенный метод TouchImpl (Наследуется из SqlSmoObject.)
Защищенный метод UnbindDefaultImpl (Наследуется из SqlSmoObject.)
Защищенный метод UnbindRuleImpl (Наследуется из SqlSmoObject.)
Открытый метод UpdateNotification Changes the notification method associated with an operator for the alert.
Открытый метод Validate (Наследуется из SmoObjectBase.)

В начало

Поля

  Имя Описание
Защищенное поле m_ExtendedProperties (Наследуется из SqlSmoObject.)

В начало

Свойства

  Имя Описание
Открытое свойство AlertType Gets the AlertType object value that specifies the type of alert.
Открытое свойство CategoryName Gets or sets the name of the category to which the alert belongs.
Открытое свойство CountResetDate Gets or sets the date on which to reset the alert occurrence count back to zero.
Открытое свойство DatabaseName Gets or sets the name of the database that the alert is monitoring.
Открытое свойство DelayBetweenResponses Gets or sets the delay between responses in seconds.
Открытое свойство EventDescriptionKeyword Gets or sets a word or phrase that must appear in the text of an event message that causes the alert to be raised.
Открытое свойство EventSource Gets the event source text from the application event log.
Защищенное свойство ExecuteForScalar Gets or sets the Boolean property value that specifies whether the object is set to the execute for scalar option. (Наследуется из SqlSmoObject.)
Открытое свойство HasNotification Gets the number of SQL Server Agent operators that are assigned to receive notification when the alert is fired.
Открытое свойство ID Gets the ID value that uniquely identifies SQL Server Agent.
Открытое свойство IncludeEventDescription Gets or sets the NotifyMethods object value that specifies the types of notification methods (e-mail, pager, or net send) that can contain alert error text.
Открытое свойство IsEnabled Gets or sets the Boolean property value that specifies whether the alert is enabled or not.
Защищенное свойство IsTouched Gets the Boolean property value that specifies whether the object properties have been updated but not yet persisted on the server. (Наследуется из SqlSmoObject.)
Открытое свойство JobID Gets or sets the ID value of the SQL Server Agent job that is run in response to the alert being raised.
Открытое свойство JobName Gets or sets the name of the SQL Server Agent job that is run in response to the alert being raised.
Открытое свойство LastOccurrenceDate Gets or sets the date on which the alert was last raised.
Открытое свойство LastResponseDate Gets or sets the date on which the alert last generated a response.
Открытое свойство MessageID Gets or sets the ID value of the Microsoft SQL Server message that causes the alert to be raised.
Открытое свойство Name Gets or sets the name of the object. (Наследуется из NamedSmoObject.)
Открытое свойство NotificationMessage Gets or sets the user-supplied text appended to any notification sent in response to an alert being raised.
Защищенное свойство ObjectInSpace Gets the Boolean property value that specifies whether the object exists in isolation, or whether it is directly or indirectly connected to the instance of SQL Server. (Наследуется из SqlSmoObject.)
Открытое свойство OccurrenceCount Gets the number of times the alert has fired since the alert was enabled or since a specified date.
Открытое свойство Parent Gets or sets the JobServer object that is the parent of the Alert object.
Открытое свойство PerformanceCondition Gets or sets the performance condition text.
Открытое свойство Properties Gets a collection of Property objects that represent the object properties. (Наследуется из SqlSmoObject.)
Защищенное свойство ScalarResult Gets the scalar result for the referenced object. (Наследуется из SqlSmoObject.)
Открытое свойство Severity Gets or sets the error message severity level that causes the alert to be raised.
Открытое свойство State Gets the state of the referenced object. (Наследуется из SmoObjectBase.)
Открытое свойство Urn Gets the Uniform Resource Name (URN) address value that uniquely identifies the object. (Наследуется из SqlSmoObject.)
Открытое свойство UserData Gets or sets user-defined data associated with the referenced object. (Наследуется из SmoObjectBase.)
Открытое свойство WmiEventNamespace Gets or sets the Windows Management Instrumentation (WMI) namespace for the event.
Открытое свойство WmiEventQuery Gets or sets the Windows Management Instrumentation (WMI) query for the event.

В начало

События

  Имя Описание
Открытое событие PropertyChanged (Наследуется из SqlSmoObject.)
Открытое событие PropertyMetadataChanged (Наследуется из SqlSmoObject.)

В начало

Явные реализации интерфейса

  Имя Описание
Явная реализация интерфейсаЗакрытый метод IAlienObjectDiscover (Наследуется из SqlSmoObject.)
Явная реализация интерфейсаЗакрытый метод IAlienObjectGetParent (Наследуется из SqlSmoObject.)
Явная реализация интерфейсаЗакрытый метод IAlienObjectGetProperty (Наследуется из SqlSmoObject.)
Явная реализация интерфейсаЗакрытый метод ISfcPropertyProviderGetPropertySet (Наследуется из SqlSmoObject.)
Явная реализация интерфейсаЗакрытый метод IAlienObjectGetUrn (Наследуется из SqlSmoObject.)
Явная реализация интерфейсаЗакрытый метод IAlienObjectResolve (Наследуется из SqlSmoObject.)
Явная реализация интерфейсаЗакрытый метод IAlienObjectSetProperty (Наследуется из SqlSmoObject.)

В начало