Partager via


Membres Alert

The Alert class represents a Microsoft SQL Server Agent alert.

Le type Alert expose les membres suivants.

Constructeurs

  Nom Description
Méthode publique Alert() () () () Initializes a new instance of the Alert class.
Méthode publique Alert(JobServer, String) Initializes a new instance of the Alert class on the specified instance of SQL Server Agent and with the specified name

Haut de la page

Méthodes

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

Haut de la page

Champs

  Nom Description
Champ protégé m_ExtendedProperties (Hérité de SqlSmoObject.)

Haut de la page

Propriétés

  Nom Description
Propriété publique AlertType Gets the AlertType object value that specifies the type of alert.
Propriété publique CategoryName Gets or sets the name of the category to which the alert belongs.
Propriété publique CountResetDate Gets or sets the date on which to reset the alert occurrence count back to zero.
Propriété publique DatabaseName Gets or sets the name of the database that the alert is monitoring.
Propriété publique DelayBetweenResponses Gets or sets the delay between responses in seconds.
Propriété publique 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.
Propriété publique EventSource Gets the event source text from the application event log.
Propriété protégée ExecuteForScalar Gets or sets the Boolean property value that specifies whether the object is set to the execute for scalar option. (Hérité de SqlSmoObject.)
Propriété publique HasNotification Gets the number of SQL Server Agent operators that are assigned to receive notification when the alert is fired.
Propriété publique ID Gets the ID value that uniquely identifies SQL Server Agent.
Propriété publique 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.
Propriété publique IsEnabled Gets or sets the Boolean property value that specifies whether the alert is enabled or not.
Propriété protégée IsTouched Gets the Boolean property value that specifies whether the object properties have been updated but not yet persisted on the server. (Hérité de SqlSmoObject.)
Propriété publique JobID Gets or sets the ID value of the SQL Server Agent job that is run in response to the alert being raised.
Propriété publique JobName Gets or sets the name of the SQL Server Agent job that is run in response to the alert being raised.
Propriété publique LastOccurrenceDate Gets or sets the date on which the alert was last raised.
Propriété publique LastResponseDate Gets or sets the date on which the alert last generated a response.
Propriété publique MessageID Gets or sets the ID value of the Microsoft SQL Server message that causes the alert to be raised.
Propriété publique Name Gets or sets the name of the object. (Hérité de NamedSmoObject.)
Propriété publique NotificationMessage Gets or sets the user-supplied text appended to any notification sent in response to an alert being raised.
Propriété protégée 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. (Hérité de SqlSmoObject.)
Propriété publique OccurrenceCount Gets the number of times the alert has fired since the alert was enabled or since a specified date.
Propriété publique Parent Gets or sets the JobServer object that is the parent of the Alert object.
Propriété publique PerformanceCondition Gets or sets the performance condition text.
Propriété publique Properties Gets a collection of Property objects that represent the object properties. (Hérité de SqlSmoObject.)
Propriété protégée ScalarResult Gets the scalar result for the referenced object. (Hérité de SqlSmoObject.)
Propriété publique Severity Gets or sets the error message severity level that causes the alert to be raised.
Propriété publique State Gets the state of the referenced object. (Hérité de SmoObjectBase.)
Propriété publique Urn Gets the Uniform Resource Name (URN) address value that uniquely identifies the object. (Hérité de SqlSmoObject.)
Propriété publique UserData Gets or sets user-defined data associated with the referenced object. (Hérité de SmoObjectBase.)
Propriété publique WmiEventNamespace Gets or sets the Windows Management Instrumentation (WMI) namespace for the event.
Propriété publique WmiEventQuery Gets or sets the Windows Management Instrumentation (WMI) query for the event.

Haut de la page

Événements

  Nom Description
Événement public PropertyChanged (Hérité de SqlSmoObject.)
Événement public PropertyMetadataChanged (Hérité de SqlSmoObject.)

Haut de la page

Implémentations d'interfaces explicites

  Nom Description
Implémentation d'interface expliciteMéthode privée IAlienObjectDiscover (Hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée IAlienObjectGetParent (Hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée IAlienObjectGetProperty (Hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée ISfcPropertyProviderGetPropertySet (Hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée IAlienObjectGetUrn (Hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée IAlienObjectResolve (Hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée IAlienObjectSetProperty (Hérité de SqlSmoObject.)

Haut de la page