Classe ServerProtocolCollection

The ServerProtocolCollection class represents a collection of ServerProtocol objects that represent all the server protocols defined on the parent object.

Gerarchia di ereditarietà

System.Object
  Microsoft.SqlServer.Management.Smo.Wmi.WmiCollectionBase
    Microsoft.SqlServer.Management.Smo.Wmi.ServerProtocolCollection

Spazio dei nomi  Microsoft.SqlServer.Management.Smo.Wmi
Assembly:  Microsoft.SqlServer.SqlWmiManagement (in Microsoft.SqlServer.SqlWmiManagement.dll)

Sintassi

'Dichiarazione
Public NotInheritable Class ServerProtocolCollection _
    Inherits WmiCollectionBase _
    Implements ICollection, IEnumerable
'Utilizzo
Dim instance As ServerProtocolCollection
public sealed class ServerProtocolCollection : WmiCollectionBase, 
    ICollection, IEnumerable
public ref class ServerProtocolCollection sealed : public WmiCollectionBase, 
    ICollection, IEnumerable
[<SealedAttribute>]
type ServerProtocolCollection =  
    class 
        inherit WmiCollectionBase 
        interface ICollection 
        interface IEnumerable 
    end
public final class ServerProtocolCollection extends WmiCollectionBase implements ICollection, IEnumerable

Nel tipo ServerProtocolCollection sono esposti i membri seguenti.

Proprietà

  Nome Descrizione
Proprietà pubblica Count Gets the number of ServerProtocol objects in the referenced collection.
Proprietà pubblica IsSynchronized Gets the Boolean property value that specifies whether access to the collection is synchronized (thread safe). Ereditato da WmiCollectionBase.
Proprietà pubblica Item[Int32] Gets a ServerProtocol object in the collection by index number.
Proprietà pubblica Item[String] Gets a ServerProtocol object in the collection by name.
Proprietà pubblica Parent Gets the ServerInstance object that is the parent of the ServerProtocolCollection object.
Proprietà pubblica SyncRoot Gets an object that can be used to synchronize access to the collection. Ereditato da WmiCollectionBase.

In alto

Metodi

  Nome Descrizione
Metodo pubblico Contains Checks whether the specified key value exists in the collection.
Metodo pubblico CopyTo Copies the collection objects to a one-dimensional array beginning at the index value specified.
Metodo pubblico Equals Ereditato da Object.
Metodo pubblico GetEnumerator Returns an IEnumerator interface that allows you to iterate through the objects in the collection.
Metodo pubblico GetHashCode Ereditato da Object.
Metodo pubblico GetType Ereditato da Object.
Metodo pubblico ToString Ereditato da Object.

In alto

Campi

  Nome Descrizione
Campo protetto initialized Defines a boolean method that initializes the collection of objects in the Windows Management Instrumentation (WMI) object preference. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da WmiCollectionBase.
Campo protetto innerColl Identificato solo a scopo informativo. Non supportato. Non è garantita la compatibilità con le versioni future. Ereditato da WmiCollectionBase.

In alto

Implementazioni esplicite dell'interfaccia

  Nome Descrizione
Implementazione esplicita dell'interfacciaMetodo privato ICollection.CopyTo Copies the collection objects to a one-dimensional array beginning at the index value specified.

In alto

Osservazioni

A ServerProtocolCollection object can be used to gain access to a set of server protocols. You can use the Item property to return a specific ServerProtocol object.

Thread Safety

Tutti i membri statici pubblici (Shared in Microsoft Visual Basic) di questo tipo sono sicuri per le operazioni a thread multipli. Non è invece garantita la sicurezza dei membri dell'istanza.

Esempi

Utilizzo delle raccolte

Protezione dei thread

I membri static (Shared in Visual Basic) pubblici di questo tipo sono affidabili. Non è invece garantita la sicurezza dei membri dell'istanza.

Vedere anche

Riferimento

Spazio dei nomi Microsoft.SqlServer.Management.Smo.Wmi