Freigeben über


ManagedInstanceCollection.Item-Eigenschaft (String)

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

Namespace:  Microsoft.SqlServer.Management.Utility
Assembly:  Microsoft.SqlServer.Management.Utility (in Microsoft.SqlServer.Management.Utility.dll)

Syntax

'Declaration
Public ReadOnly Default Property Item ( _
    name As String _
) As ManagedInstance 
    Get
'Usage
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 unterstützt die Verwendung indizierter Eigenschaften, aber nicht die Deklaration neuer Eigenschaften.

Parameter

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

Eigenschaftswert

Typ: 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 nullein NULL-Verweis (Nothing in Visual Basic).

Siehe auch

Verweis

ManagedInstanceCollection Klasse

Item-Überladung

Microsoft.SqlServer.Management.Utility-Namespace