Returns the managed instance with the specified name from the ManagedInstanceCollection.
命名空間: Microsoft.SqlServer.Management.Utility
組件: Microsoft.SqlServer.Management.Utility (在 Microsoft.SqlServer.Management.Utility.dll 中)
語法
'宣告
Public ReadOnly Default Property Item ( _
name As String _
) As ManagedInstance
Get
'用途
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 支援索引屬性的使用,但不支援新屬性的宣告。
參數
- name
型別:System.String
A String value that specifies the name of the managed instance to get from the collection.
屬性值
型別: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 nullnull 參考 (在 Visual Basic 中為 Nothing).