ServerProtocolCollection.Item[] 屬性

定義

依名稱或索引編號取得集合中的 ServerProtocol 物件。

多載

Item[Int32]

依索引編號取得集合中的 ServerProtocol 物件。

Item[String]

依名稱取得集合中的 ServerProtocol 物件。

Item[Int32]

依索引編號取得集合中的 ServerProtocol 物件。

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

參數

index
Int32

Int32 值,這個值會指定 ServerProtocol 物件在 ServerProtocolCollection 集合中的位置。

屬性值

ServerProtocol

代表伺服器通訊協定的 ServerProtocol 物件值。

適用於

Item[String]

依名稱取得集合中的 ServerProtocol 物件。

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

參數

name
String

String 值,這個值會指定 ServerProtocol 物件在 ServerProtocolCollection 集合中的名稱。

屬性值

ServerProtocol

代表伺服器通訊協定的 ServerProtocol 物件值。

範例

使用集合

適用於