Share via


SettingsCollection<T> Class

 

A strongly-typed collection of key-value pairs. Keys are always strings, but values may be arbitrary .NET types that are marked as [DataContract].

Namespace:   Microsoft.WindowsServerSolutions.Settings
Assembly:  SettingsObjectModel (in SettingsObjectModel.dll)

Inheritance Hierarchy

System.Object
  Microsoft.WindowsServerSolutions.Settings.SettingsCollection<T>

Syntax

public class SettingsCollection<T>
where T : class
generic<typename T>
where T : ref class
public ref class SettingsCollection 
Public Class SettingsCollection(Of T As Class)

Type Parameters

  • T
    The value type of this collection.

Properties

Name Description
System_CAPS_pubproperty Item[String]

Gets or sets an item based on the specified key.

System_CAPS_pubproperty Items

Gets an enumerator of items in this collection.

System_CAPS_pubproperty Keys

Gets an enumeration of the keys in this collection.

Methods

Name Description
System_CAPS_pubmethod Commit()

Saves all of the updates to the collection.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod Rollback()

Removes any changes that were made since the last commit.

System_CAPS_pubmethod ToString()

(Inherited from Object.)

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.

See Also

Microsoft.WindowsServerSolutions.Settings Namespace

Return to top