Partager via


Classe ServerProtocolCollection

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

Hiérarchie d'héritage

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

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

Syntaxe

'Déclaration
Public NotInheritable Class ServerProtocolCollection _
    Inherits WmiCollectionBase _
    Implements ICollection, IEnumerable
'Utilisation
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

Le type ServerProtocolCollection expose les membres suivants.

Propriétés

  Nom Description
Propriété publique Count Gets the number of ServerProtocol objects in the referenced collection.
Propriété publique IsSynchronized Gets the Boolean property value that specifies whether access to the collection is synchronized (thread safe). (hérité de WmiCollectionBase.)
Propriété publique Item[ ( [ ( Int32] ) ] ) Gets a ServerProtocol object in the collection by index number.
Propriété publique Item[ ( [ ( String] ) ] ) Gets a ServerProtocol object in the collection by name.
Propriété publique Parent Gets the ServerInstance object that is the parent of the ServerProtocolCollection object.
Propriété publique SyncRoot Gets an object that can be used to synchronize access to the collection. (hérité de WmiCollectionBase.)

Haut de la page

Méthodes

  Nom Description
Méthode protégée Add Adds the specified object to the referenced collection. (hérité de WmiCollectionBase.)
Méthode publique Contains Checks whether the specified key value exists in the collection.
Méthode publique CopyTo Copies the collection objects to a one-dimensional array beginning at the index value specified.
Méthode publique Equals (hérité de Object.)
Méthode protégée Finalize (hérité de Object.)
Méthode publique GetEnumerator Returns an IEnumerator interface that allows you to iterate through the objects in the collection.
Méthode publique GetHashCode (hérité de Object.)
Méthode publique GetType (hérité de Object.)
Méthode protégée MemberwiseClone (hérité de Object.)
Méthode protégée Remove Removes the specified object from the referenced collection. (hérité de WmiCollectionBase.)
Méthode publique ToString (hérité de Object.)

Haut de la page

Champs

  Nom Description
Champ protégé initialized Defines a boolean method that initializes the collection of objects in the Windows Management Instrumentation (WMI) object preference. Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de WmiCollectionBase.)
Champ protégé innerColl Identifié à titre d'information uniquement. Non pris en charge. La compatibilité future n'est pas garantie. (hérité de WmiCollectionBase.)

Haut de la page

Implémentations d'interfaces explicites

  Nom Description
Implémentation d'interface expliciteMéthode privée ICollection. . :: . .CopyTo Copies the collection objects to a one-dimensional array beginning at the index value specified.

Haut de la page

Notes

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

Tout membre statique public (Partagé dans Microsoft Visual Basic) de ce type est sûr dans le cadre des opérations à plusieurs threads. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.