Skip to main content
Version: 2025

SalNamedProperties

Namespace: PPJ.Runtime.Windows

Assembly: PPJ.Web.50 (5.0.0.0)

Stores string-valued named properties for SAL controls.

public class SalNamedProperties : IList, ICollection, IEnumerable, IDictionary

Keys use the underlying hash table's default, case-sensitive comparison. Assign through the indexer or Put to replace an existing value; Add rejects duplicate keys. Enumeration yields dictionary entries, and ordering is not guaranteed.

Example:

var properties = new PPJ.Runtime.Windows.SalNamedProperties();
properties.Add("Caption", "Open");
properties["Caption"] = "Save";
string caption = properties["Caption"]; // "Save"
bool sameKey = properties.Contains("caption"); // false

Constructors

Instance member SalNamedProperties()

Initializes a new instance of SalNamedProperties.

Properties

Instance member Count

Int32: Gets the number of named properties, including entries with null values.

Instance member Item(key)

String: Gets or sets the value associated with a case-sensitive property name.

Instance member Keys

ICollection: Gets a collection view of the property names.

Instance member Values

ICollection: Gets a collection view of the stored property values.

Methods

Instance member Add(key, value)

Adds a new named property without replacing an existing entry.

ParameterTypeDescription
keyStringThe case-sensitive property name.
valueStringThe string value to store, including null.

Throws:

Instance member Clear()

Removes all named properties.

Instance member Contains(key)

Tests whether a case-sensitive property name exists.

ParameterTypeDescription
keyStringThe property name to locate.

Returns: Boolean. True if the key exists, even when its stored value is null; otherwise, false.

Instance member CopyTo(array, index)

Copies the collection's dictionary entries into an array.

ParameterTypeDescription
arrayArrayThe one-dimensional destination array with sufficient capacity.
indexInt32The zero-based destination index at which copying begins.

Instance member GetEnumerator()

Creates an enumerator over the named-property entries.

Returns: IEnumerator. An enumerator whose current item is a DictionaryEntry.

Instance member Put(key, value)

Adds or replaces a named property.

ParameterTypeDescription
keyStringThe case-sensitive property name.
valueStringThe string value to store, including null.

Throws:

Instance member Remove(key)

Removes the named property if it exists.

ParameterTypeDescription
keyStringThe case-sensitive property name to remove.