共用方式為


Operator.PagerDays 屬性

Gets or sets the days of the week on which SQL Server Agent attempts to notify the referenced operator by pager.

命名空間:  Microsoft.SqlServer.Management.Smo.Agent
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property PagerDays As WeekDays 
    Get 
    Set
'用途
Dim instance As [Operator]
Dim value As WeekDays 

value = instance.PagerDays

instance.PagerDays = value
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public WeekDays PagerDays { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property WeekDays PagerDays {
    WeekDays get ();
    void set (WeekDays value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member PagerDays : WeekDays with get, set
function get PagerDays () : WeekDays 
function set PagerDays (value : WeekDays)

屬性值

型別:Microsoft.SqlServer.Management.Smo.Agent.WeekDays
A WeekDays object value that specifies the day of the week or the combination of days of the week that SQL Server Agent notifies the operator by pager.

範例

使用 SQL Server Agent 排程自動管理工作

請參閱

參考

Operator 類別

Microsoft.SqlServer.Management.Smo.Agent 命名空間

其他資源

自動化管理工作 (SQL Server Agent)

sp_add_operator (Transact-SQL)