共用方式為


InstanceEnumeration.Item Property

Returns a reference to an NSInstanceDescription.

命名空間: Microsoft.SqlServer.NotificationServices
組件: Microsoft.SqlServer.NotificationServices (in microsoft.sqlserver.notificationservices.dll)

語法

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

參數

  • instanceName
    The name of the Notification Services instance for which a description is to be returned.

屬性值

An NSInstanceDescription object, which contains descriptive information about the specified Notification Services instance.

範例

The following examples show how to use the Item property to return an NSInstanceDescription object:

Dim instanceName As String = "MyInstanceName"

'Create an InstanceEnumeration object.
Dim myInstanceEnumeration As New InstanceEnumeration()

'Use the Item property to return an NSInstanceDescription object.
Dim myInstanceDescription As NSInstanceDescription = _
    myInstanceEnumeration(instanceName)
string instanceName = "MyInstanceName";

//Create an InstanceEnumeration object.
InstanceEnumeration myInstanceEnumeration = 
    new InstanceEnumeration();

//Use the Item property to return an NSInstanceDescription object.
NSInstanceDescription myInstanceDescription = 
    myInstanceEnumeration[instanceName];

執行緒安全性

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

平台

開發平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

目標平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

請參閱

參考

InstanceEnumeration Class
InstanceEnumeration Members
Microsoft.SqlServer.NotificationServices Namespace