Alert Miembros

The Alert class represents a Microsoft SQL Server Agent alert.

El tipo Alert expone los siguientes miembros.

Constructores

  Nombre Descripción
Método publico Alert() () () () Initializes a new instance of the Alert class.
Método publico Alert(JobServer, String) Initializes a new instance of the Alert class on the specified instance of SQL Server Agent and with the specified name

Principio

Métodos

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

Principio

Campos

  Nombre Descripción
Campo protegido m_ExtendedProperties (Se hereda de SqlSmoObject).

Principio

Propiedades

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

Principio

Eventos

  Nombre Descripción
Evento público PropertyChanged (Se hereda de SqlSmoObject).
Evento público PropertyMetadataChanged (Se hereda de SqlSmoObject).

Principio

Implementaciones de interfaces explícitas

  Nombre Descripción
Implementación de interfaces explícitasMétodo privado IAlienObjectDiscover (Se hereda de SqlSmoObject).
Implementación de interfaces explícitasMétodo privado IAlienObjectGetParent (Se hereda de SqlSmoObject).
Implementación de interfaces explícitasMétodo privado IAlienObjectGetProperty (Se hereda de SqlSmoObject).
Implementación de interfaces explícitasMétodo privado ISfcPropertyProviderGetPropertySet (Se hereda de SqlSmoObject).
Implementación de interfaces explícitasMétodo privado IAlienObjectGetUrn (Se hereda de SqlSmoObject).
Implementación de interfaces explícitasMétodo privado IAlienObjectResolve (Se hereda de SqlSmoObject).
Implementación de interfaces explícitasMétodo privado IAlienObjectSetProperty (Se hereda de SqlSmoObject).

Principio