配信プロトコルの親である NotificationClass を取得または設定します。
名前空間: Microsoft.SqlServer.Management.Nmo
アセンブリ: Microsoft.SqlServer.Smo (microsoft.sqlserver.smo.dll 内)
構文
'宣言
Public Property Parent As NotificationClass
public NotificationClass Parent { get; set; }
public:
property NotificationClass^ Parent {
NotificationClass^ get ();
void set (NotificationClass^ value);
}
/** @property */
public NotificationClass get_Parent ()
/** @property */
public void set_Parent (NotificationClass value)
public function get Parent () : NotificationClass
public function set Parent (value : NotificationClass)
プロパティ値
配信プロトコルの親である NotificationClass です。
解説
更新されたテキスト :2005 年 12 月 5 日
更新されたサンプル コード :2005 年 12 月 5 日
NotificationClassProtocol には、それぞれ親の NotificationClass があります。通常は、NotificationClassProtocol(NotificationClass,String) コンストラクタを使用して NotificationClassProtocol を作成する際に、親オブジェクトを指定します。
コンストラクタで親を設定する場合は、このプロパティを使用して親を設定しないでください。親を 2 回設定すると例外がスローされます。
使用例
次の例は、既定のコンストラクタを使用する場合に Parent プロパティを設定する方法を示しています。
// Define a protocol for notification delivery and set properties.
NotificationClassProtocol fileProtocol =
new NotificationClassProtocol();
fileProtocol.Name = "File";
fileProtocol.Parent = flightNotifications;
fileProtocol.FailuresBeforeEventLog = 1;
fileProtocol.FailureEventLogInterval = new TimeSpan(0, 0, 0);
fileProtocol.FailuresBeforeAbort = 20;
fileProtocol.MulticastRecipientLimit = 100;
fileProtocol.WorkItemTimeout = new TimeSpan(0, 15, 0);
' Define a protocol for notification delivery and set properties.
Dim fileProtocol As NotificationClassProtocol = _
New NotificationClassProtocol()
fileProtocol.Name = "File"
fileProtocol.Parent = flightNotifications
fileProtocol.FailuresBeforeEventLog = 1
fileProtocol.FailureEventLogInterval = New TimeSpan(0, 0, 0)
fileProtocol.FailuresBeforeAbort = 20
fileProtocol.MulticastRecipientLimit = 100
fileProtocol.WorkItemTimeout = New TimeSpan(0, 15, 0)
スレッド セーフ
この型の public static (Microsoft Visual Basic では共有 ) メンバは、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。
プラットフォーム
開発プラットフォーム
サポートされているプラットフォームの一覧については、「SQL Server 2005 のインストールに必要なハードウェアおよびソフトウェア」を参照してください。
対象プラットフォーム
サポートされているプラットフォームの一覧については、「SQL Server 2005 のインストールに必要なハードウェアおよびソフトウェア」を参照してください。
参照
関連項目
NotificationClassProtocol Class
NotificationClassProtocol Members
Microsoft.SqlServer.Management.Nmo Namespace