Classe ClientProtocolCollection
The ClientProtocolCollection class represents a collection of ClientProtocol objects that represent all the client protocols defined on the parent object.
Gerarchia di ereditarietà
System.Object
Microsoft.SqlServer.Management.Smo.Wmi.WmiCollectionBase
Microsoft.SqlServer.Management.Smo.Wmi.ClientProtocolCollection
Spazio dei nomi Microsoft.SqlServer.Management.Smo.Wmi
Assembly: Microsoft.SqlServer.SqlWmiManagement (in Microsoft.SqlServer.SqlWmiManagement.dll)
Sintassi
'Dichiarazione
Public NotInheritable Class ClientProtocolCollection _
Inherits WmiCollectionBase _
Implements ICollection, IEnumerable
'Utilizzo
Dim instance As ClientProtocolCollection
public sealed class ClientProtocolCollection : WmiCollectionBase,
ICollection, IEnumerable
public ref class ClientProtocolCollection sealed : public WmiCollectionBase,
ICollection, IEnumerable
[<SealedAttribute>]
type ClientProtocolCollection =
class
inherit WmiCollectionBase
interface ICollection
interface IEnumerable
end
public final class ClientProtocolCollection extends WmiCollectionBase implements ICollection, IEnumerable
Nel tipo ClientProtocolCollection sono esposti i membri seguenti.
Proprietà
Nome | Descrizione | |
---|---|---|
![]() |
Count | Gets the number of ClientProtocol objects in the referenced collection. |
![]() |
IsSynchronized | Gets the Boolean property value that specifies whether access to the collection is synchronized (thread safe). Ereditato da WmiCollectionBase. |
![]() |
Item[Int32] | Gets a ClientProtocol object in the collection by index number. |
![]() |
Item[String] | Gets a ClientProtocol object in the collection by name. |
![]() |
Parent | Gets the ManagedComputer object that is the parent of the ClientProtocolCollection object. |
![]() |
SyncRoot | Gets an object that can be used to synchronize access to the collection. Ereditato da WmiCollectionBase. |
In alto
Metodi
Nome | Descrizione | |
---|---|---|
![]() |
Contains | Checks whether the specified key value exists in the collection. |
![]() |
CopyTo | Copies the collection objects to a one-dimensional array beginning at the index value specified. |
![]() |
Equals | Ereditato da Object. |
![]() |
GetEnumerator | Gets an enumerator that can iterate through the list of objects. |
![]() |
GetHashCode | Ereditato da Object. |
![]() |
GetType | Ereditato da Object. |
![]() |
ToString | Ereditato da Object. |
In alto
Campi
Nome | Descrizione | |
---|---|---|
![]() |
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. |
![]() |
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 | |
---|---|---|
![]() ![]() |
ICollection.CopyTo | Copies the collection objects to a one-dimensional array beginning at the index value specified. |
In alto
Osservazioni
A ClientProtocolCollection object can be used to gain access to a set of client protocols. You can use the Item property to return a specific ClientProtocol 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
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.