Поделиться через


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, представляющее серверный протокол.

Применяется к

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, представляющее серверный протокол.

Примеры

Использование коллекций

Применяется к