Compartir a través de


InstanceEnumeration.Item Property

Returns a reference to an NSInstanceDescription.

Espacio de nombres: Microsoft.SqlServer.NotificationServices
Ensamblado: Microsoft.SqlServer.NotificationServices (in microsoft.sqlserver.notificationservices.dll)

Sintaxis

'Declaración
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)

Parámetros

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

Valor de propiedad

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

Ejemplo

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];

Seguridad para subprocesos

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.

Plataformas

Plataformas de desarrollo

Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.

Plataformas de destino

Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.

Vea también

Referencia

InstanceEnumeration Class
InstanceEnumeration Members
Microsoft.SqlServer.NotificationServices Namespace