ManagedInstanceCollection.Item 属性 (String)
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).