ServerInstanceCollection.Item[] 属性

定义

按名称或索引号获取集合中的 ServerInstance 对象。

重载

Item[Int32]

按索引号获取集合中的 ServerInstance 对象。

Item[String]

按名称获取集合中的 ServerInstance 对象。

Item[Int32]

按索引号获取集合中的 ServerInstance 对象。

public:
 property Microsoft::SqlServer::Management::Smo::Wmi::ServerInstance ^ default[int] { Microsoft::SqlServer::Management::Smo::Wmi::ServerInstance ^ get(int index); };
public Microsoft.SqlServer.Management.Smo.Wmi.ServerInstance this[int index] { get; }
member this.Item(int) : Microsoft.SqlServer.Management.Smo.Wmi.ServerInstance
Default Public ReadOnly Property Item(index As Integer) As ServerInstance

参数

index
Int32

一个 Int32 值,该值指定 ServerInstance 对象在 ServerInstanceCollection 集合中的位置。

属性值

一个 ServerInstance 对象值,该值表示 SQL Server 实例。

适用于

Item[String]

按名称获取集合中的 ServerInstance 对象。

public:
 property Microsoft::SqlServer::Management::Smo::Wmi::ServerInstance ^ default[System::String ^] { Microsoft::SqlServer::Management::Smo::Wmi::ServerInstance ^ get(System::String ^ name); };
public Microsoft.SqlServer.Management.Smo.Wmi.ServerInstance this[string name] { get; }
member this.Item(string) : Microsoft.SqlServer.Management.Smo.Wmi.ServerInstance
Default Public ReadOnly Property Item(name As String) As ServerInstance

参数

name
String

一个 String 值,该值指定 ServerInstance 集合中的 ServerInstanceCollection 对象的名称。

属性值

一个 ServerInstance 对象值,该值表示 SQL Server 实例。

适用于