Partager via


Propriété ManagedInstanceCollection.Item (String)

Returns the managed instance with the specified name from the ManagedInstanceCollection.

Espace de noms :  Microsoft.SqlServer.Management.Utility
Assembly :  Microsoft.SqlServer.Management.Utility (en Microsoft.SqlServer.Management.Utility.dll)

Syntaxe

'Déclaration
Public ReadOnly Default Property Item ( _
    name As String _
) As ManagedInstance 
    Get
'Utilisation
Dim instance As ManagedInstanceCollection 
Dim name As String 
Dim value As ManagedInstance 

value = instance(name)
public ManagedInstance this[
    string name
] { get; }
public:
property ManagedInstance^ default[String^ name] {
    ManagedInstance^ get (String^ name);
}
member Item : ManagedInstance
JScript prend en charge l'utilisation de propriétés indexées, mais pas la déclaration de nouvelles propriétés.

Paramètres

  • name
    Type : System.String
    A String value that specifies the name of the managed instance to get from the collection.

Valeur de propriété

Type : Microsoft.SqlServer.Management.Utility.ManagedInstance
A ManagedInstance object with the specified name. If the object with the specified name is not part of the collection, this method will return nullune référence Null (Nothing dans Visual Basic).

Voir aussi

Référence

ManagedInstanceCollection Classe

Surcharge Item

Espace de noms Microsoft.SqlServer.Management.Utility