次の方法で共有


Server.NotificationServices Property

Microsoft SQL Server のインスタンスに関連付けられている Notification Services を取得します。

名前空間: Microsoft.SqlServer.Management.Smo
アセンブリ: Microsoft.SqlServer.Smo (microsoft.sqlserver.smo.dll 内)

構文

'宣言
Public ReadOnly Property NotificationServices As NotificationServices
public NotificationServices NotificationServices { get; }
public:
property NotificationServices^ NotificationServices {
    NotificationServices^ get ();
}
/** @property */
public NotificationServices get_NotificationServices ()
public function get NotificationServices () : NotificationServices

プロパティ値

SQL Server のインスタンスに関連付けられている Notification Services を示す NotificationServices オブジェクトです。

解説

更新されたテキスト :

NotificationServices プロパティは NotificationServices クラスを参照しています。このクラスは、SQL Server のインスタンスで利用できる Notification Services サービスを表します。

この名前空間、クラス、またはメンバは、Microsoft .NET Framework Version 2.0 でのみサポートされています。

使用例

' Specify the Database Engine instance that hosts the 
' Notification Services instance and get a reference to 
' the NotificationServices object.
Dim server As New smo.Server("nsuetest")
Dim notificationServices As nmo.NotificationServices = _
    server.NotificationServices

' Get the Notification Services instance.
Dim nsinst As nmo.Instance = _
    notificationServices.Instances("Tutorial")

' Get the collection of delivery channels for the instance.
Dim dcCollection As nmo.DeliveryChannelCollection = _
    nsinst.DeliveryChannels

' Enumerate the delivery channels.
Dim dc As nmo.DeliveryChannel
For Each dc In dcCollection
    Console.WriteLine(dc.Name)
Next

スレッド セーフ

この型の public static (Microsoft Visual Basic では共有 ) メンバは、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。

プラットフォーム

開発プラットフォーム

サポートされているプラットフォームの一覧については、「SQL Server 2005 のインストールに必要なハードウェアおよびソフトウェア」を参照してください。

対象プラットフォーム

サポートされているプラットフォームの一覧については、「SQL Server 2005 のインストールに必要なハードウェアおよびソフトウェア」を参照してください。

参照

関連項目

Server Class
Server Members
Microsoft.SqlServer.Management.Smo Namespace
NotificationServices Class

その他の技術情報

プロパティの設定
サーバーの管理

変更履歴

リリース

履歴

新しい内容 :
  • 「例」セクションにコード サンプルを追加しました。

  • 「解説」セクションに説明を追加しました。