Share via


ServerProtocolCollection.Item[] Property

Definition

Gets a ServerProtocol object in the collection by name or by index number.

Overloads

Item[Int32]

Gets a ServerProtocol object in the collection by index number.

Item[String]

Gets a ServerProtocol object in the collection by name.

Item[Int32]

Gets a ServerProtocol object in the collection by index number.

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

Parameters

index
Int32

An Int32 value that specifies the position of the ServerProtocol object in the ServerProtocolCollection collection.

Property Value

A ServerProtocol object value that represents the server protocol.

Applies to

Item[String]

Gets a ServerProtocol object in the collection by name.

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

Parameters

name
String

A String value that specifies the name of the ServerProtocol object in the ServerProtocolCollection collection.

Property Value

A ServerProtocol object value that represents the server protocol.

Examples

Using Collections

Applies to