Condividi tramite


Classe ConfigPropertyCollection

The ConfigPropertyCollection class represents a collection of ConfigProperty objects that represent all the configuration properties defined on the instance of SQL Server.

Gerarchia di ereditarietà

System.Object
  Microsoft.SqlServer.Management.Smo.ConfigPropertyCollection

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

Sintassi

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

Nel tipo ConfigPropertyCollection sono esposti i membri seguenti.

Proprietà

  Nome Descrizione
Proprietà pubblica Count Gets the number of ConfigProperty objects in the ConfigPropertyCollection collection.
Proprietà pubblica IsSynchronized Gets the Boolean property value that specifies whether access to the collection is synchronized and therefore thread safe.
Proprietà pubblica Item[Int32] Gets a ConfigProperty object in the ConfigPropertyCollection collection by index number.
Proprietà pubblica Item[String] Gets a ConfigProperty object in the ConfigPropertyCollection collection by name.
Proprietà pubblica SyncRoot Gets an object that can be used to synchronize access to the collection.

In alto

Metodi

  Nome Descrizione
Metodo pubblico CopyTo Copies the collection objects to a one-dimensional array starting at the specified index value.
Metodo pubblico Equals Ereditato da Object.
Metodo pubblico GetEnumerator Gets an enumerator that can iterate through the list of objects.
Metodo pubblico GetHashCode Ereditato da Object.
Metodo pubblico GetType Ereditato da Object.
Metodo pubblico ToString Ereditato da Object.

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 ConfigPropertyCollection object can be used to gain access to a set of configuration properties. You can use the Item property to return a specific ConfigProperty 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