ConfigPropertyCollection Class

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

Inheritance Hierarchy

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

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public NotInheritable Class ConfigPropertyCollection _
    Implements ICollection, IEnumerable
'Usage
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

The ConfigPropertyCollection type exposes the following members.

Properties

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

Top

Methods

  Name Description
Public method CopyTo Copies the collection objects to a one-dimensional array starting at the specified index value.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetEnumerator Gets an enumerator that can iterate through the list of objects.
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method ICollection.CopyTo Copies the collection objects to a one-dimensional array beginning at the index value specified.

Top

Remarks

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

Any public static (Shared in Microsoft Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.