ApplicationEnumeration.Item Property

特定の Notification Services アプリケーションへの参照を取得します。

名前空間: Microsoft.SqlServer.NotificationServices
アセンブリ: Microsoft.SqlServer.NotificationServices (microsoft.sqlserver.notificationservices.dll 内)

構文

'宣言
Public ReadOnly Default Property Item ( _
    appNameToFind As String _
) As NSApplication
public NSApplication this [
    string appNameToFind
] { get; }
public:
virtual property NSApplication^ default [String^] {
    NSApplication^ get (String^ appNameToFind) sealed;
}
/** @property */
public final NSApplication get_Item (String appNameToFind)

パラメータ

  • appNameToFind
    取得する Notification Services アプリケーションの名前です。

プロパティ値

特定の Notification Services アプリケーションを表す NSApplication オブジェクトです。

使用例

Item プロパティを使用して、特定の Notification Services アプリケーションを表す NSApplication オブジェクトを取得する例を次に示します。

Dim instanceName As String = "MyInstanceName"
Dim applicationName As String = "MyApplicationName"

'Create an NSInstance object.
Dim myInstance As New NSInstance(instanceName)

'Create an ApplicationEnumeration object.
Dim myApplicationEnumeration As _
    New ApplicationEnumeration(myInstance)

'Use the Item property to return an NSApplication object.
Dim myApplication As NSApplication = _
    myApplicationEnumeration(applicationName)
string instanceName = "MyInstanceName";
string applicationName = "MyApplicationName";

//Create an NSInstance object.
NSInstance myInstance = new NSInstance(instanceName);

//Create an ApplicationEnumeration object.
ApplicationEnumeration myApplicationEnumeration = 
    new ApplicationEnumeration(myInstance);

//Use the Item property to return an NSApplication object.
NSApplication myApplication = 
    myApplicationEnumeration[applicationName];

スレッド セーフ

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

プラットフォーム

開発プラットフォーム

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

対象プラットフォーム

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

参照

関連項目

ApplicationEnumeration Class
ApplicationEnumeration Members
Microsoft.SqlServer.NotificationServices Namespace