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。) |
頂端
屬性
名稱 | 描述 | |
---|---|---|
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. |
頂端
明確繼承實作
名稱 | 描述 | |
---|---|---|
IAlienObjectDiscover | (繼承自 SqlSmoObject。) | |
IAlienObjectGetParent | (繼承自 SqlSmoObject。) | |
IAlienObjectGetProperty | (繼承自 SqlSmoObject。) | |
ISfcPropertyProviderGetPropertySet | (繼承自 SqlSmoObject。) | |
IAlienObjectGetUrn | (繼承自 SqlSmoObject。) | |
IAlienObjectResolve | (繼承自 SqlSmoObject。) | |
IAlienObjectSetProperty | (繼承自 SqlSmoObject。) |
頂端