Compartir a través de


Clase ProtocolPropertyCollection

The ProtocolPropertyCollection class represents a collection of ProtocolProperty objects that represent all the attributes of the protocol defined on the parent object.

Jerarquía de herencia

System.Object
  Microsoft.SqlServer.Management.Smo.Wmi.ProtocolPropertyCollection
    Microsoft.SqlServer.Management.Smo.Wmi.ClientProtocolPropertyCollection
    Microsoft.SqlServer.Management.Smo.Wmi.IPAddressPropertyCollection
    Microsoft.SqlServer.Management.Smo.Wmi.ServerProtocolPropertyCollection

Espacio de nombres:  Microsoft.SqlServer.Management.Smo.Wmi
Ensamblado:  Microsoft.SqlServer.SqlWmiManagement (en Microsoft.SqlServer.SqlWmiManagement.dll)

Sintaxis

'Declaración
Public MustInherit Class ProtocolPropertyCollection _
    Implements ICollection, IEnumerable
'Uso
Dim instance As ProtocolPropertyCollection
public abstract class ProtocolPropertyCollection : ICollection, 
    IEnumerable
public ref class ProtocolPropertyCollection abstract : ICollection, 
    IEnumerable
[<AbstractClassAttribute>]
type ProtocolPropertyCollection =  
    class 
        interface ICollection 
        interface IEnumerable 
    end
public abstract class ProtocolPropertyCollection implements ICollection, IEnumerable

El tipo ProtocolPropertyCollection expone los siguientes miembros.

Propiedades

  Nombre Descripción
Propiedad pública Count Gets the number of ProtocolProperty objects in the referenced collection.
Propiedad pública IsSynchronized Gets the Boolean property value that specifies whether access to the collection is synchronized and therefore thread-safe.
Propiedad pública Item[Int32] Gets a ProtocolPropertyCollection object in the collection by index number.
Propiedad pública Item[String] Gets a ProtocolProperty object in the collection by name.
Propiedad pública SyncRoot Gets an object that can be used to synchronize access to the collection.

Arriba

Métodos

  Nombre Descripción
Método público Contains Checks whether the specified key value exists in the collection.
Método público CopyTo Copies the collection objects to a one-dimensional array beginning at the index value specified.
Método público Equals (Se hereda de Object.)
Método protegido Finalize (Se hereda de Object.)
Método público GetEnumerator Returns an IEnumerator interface that allows you to iterate through the objects in the collection.
Método público GetHashCode (Se hereda de Object.)
Método público GetType (Se hereda de Object.)
Método protegido MemberwiseClone (Se hereda de Object.)
Método público ToString (Se hereda de Object.)

Arriba

Implementaciones de interfaces explícitas

  Nombre Descripción
Implementación de interfaces explícitasMétodo privado ICollection.CopyTo Copies the collection objects to a one-dimensional array beginning at the index value specified.

Arriba

Comentarios

The ProtocolPropertyCollection object is used in the construction of the ServerProtocolPropertyCollection object, the IPAddressPropertyCollection object, and the ClientProtocolPropertyCollection object and contains functionality that is common to all.

A ProtocolPropertyCollection object can be used to gain access to a set of attributes of the protocol. You can use the Item property to return a specific ProtocolProperty object.

Thread Safety

Todos los miembros estáticos (compartidos en Microsoft Visual Basic) públicos de este tipo son seguros para operaciones multiproceso. No se garantiza que los miembros de instancia sean seguros para subprocesos.

Ejemplos

Usar colecciones

Seguridad para subprocesos

Cualquier miembro público static (Shared en Visual Basic) de este tipo es seguro para subprocesos. No se garantiza que los miembros de instancia sean seguros para subprocesos.

Vea también

Referencia

Espacio de nombres Microsoft.SqlServer.Management.Smo.Wmi