AlertSystem.PagerSubjectTemplate プロパティ
ポケットベルによる通知で、SQL Server エージェントが送信する電子メールの Subject: 行内の、送信されるテンプレート テキストを取得します。値の設定も可能です。
名前空間: Microsoft.SqlServer.Management.Smo.Agent
アセンブリ: Microsoft.SqlServer.Smo (Microsoft.SqlServer.Smo.dll)
構文
'宣言
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property PagerSubjectTemplate As String
Get
Set
'使用
Dim instance As AlertSystem
Dim value As String
value = instance.PagerSubjectTemplate
instance.PagerSubjectTemplate = value
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public string PagerSubjectTemplate { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property String^ PagerSubjectTemplate {
String^ get ();
void set (String^ value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member PagerSubjectTemplate : string with get, set
function get PagerSubjectTemplate () : String
function set PagerSubjectTemplate (value : String)
プロパティ値
型: System.String
電子メールの Subject: テキストを示す String 値です。
説明
警告の発生が原因で送信される通知の場合、件名は "SQL Server 警告システム: 'alert name' (\\server で発生)" のように作成されます。alert name は警告の名前で、server は警告が発生している SQL Server のネットワーク名です。
ジョブの完了が原因で送信される通知の場合、件名は "SQL Server ジョブ システム: 'job name'' 完了 \\server" のように作成されます。job name は完了したジョブの名前で、server はジョブが実行された SQL Server のネットワーク名です。
テンプレートでは、SQL Server エージェントは、警告のエラー メッセージ テキストで文字列 <#S#> を置き換えます。
使用例
SQL Server エージェントでの自動管理タスクのスケジュール設定
関連項目
参照
Microsoft.SqlServer.Management.Smo.Agent 名前空間