Partager via


Propriété ServerProtocolCollection.Item (String)

Gets a ServerProtocol object in the collection by name.

Espace de noms :  Microsoft.SqlServer.Management.Smo.Wmi
Assembly :  Microsoft.SqlServer.SqlWmiManagement (en Microsoft.SqlServer.SqlWmiManagement.dll)

Syntaxe

'Déclaration
Public ReadOnly Default Property Item ( _
    name As String _
) As ServerProtocol 
    Get
'Utilisation
Dim instance As ServerProtocolCollection 
Dim name As String 
Dim value As ServerProtocol 

value = instance(name)
public ServerProtocol this[
    string name
] { get; }
public:
property ServerProtocol^ default[String^ name] {
    ServerProtocol^ get (String^ name);
}
member Item : ServerProtocol
JScript prend en charge l'utilisation de propriétés indexées, mais pas la déclaration de nouvelles propriétés.

Paramètres

Valeur de propriété

Type : Microsoft.SqlServer.Management.Smo.Wmi.ServerProtocol
A ServerProtocol object value that represents the server protocol.

Exemples

Utilisation de collections

Voir aussi

Référence

ServerProtocolCollection Classe

Surcharge Item

Espace de noms Microsoft.SqlServer.Management.Smo.Wmi