共用方式為


JobServer.SaveInSentFolder 屬性

Gets or sets the Boolean property value that specifies whether the notifications are saved.

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

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase)> _
Public Property SaveInSentFolder As Boolean 
    Get 
    Set
'用途
Dim instance As JobServer 
Dim value As Boolean 

value = instance.SaveInSentFolder

instance.SaveInSentFolder = value
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase)]
public bool SaveInSentFolder { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Standalone|SfcPropertyFlags::SqlAzureDatabase)]
public:
property bool SaveInSentFolder {
    bool get ();
    void set (bool value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase)>]
member SaveInSentFolder : bool with get, set
function get SaveInSentFolder () : boolean 
function set SaveInSentFolder (value : boolean)

屬性值

型別:System.Boolean
A Boolean value that specifies whether the notification messages are saved or not.If True, the notification messages are saved in the Sent folder.If False (default), the notification messages are not saved.

範例

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

請參閱

參考

JobServer 類別

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

其他資源

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

SQL Server Agent 預存程序 (Transact-SQL)