ISCPropertyBag

The ISCPropertyBag interface is used to set and access the properties of ISCApplicationEnvironment, ISCPersistenceUnit, and ISCModelSet. The ISCPropertyBag is also used to set the properties of a new persistence unit.

The following table contains the methods for the ISCPropertyBag interface:

Method

Description

VARIANT_BOOL Add(BSTR Name, VARIANT Value)

Adds a new property to the bag. Does not check for duplicate names. Returns TRUE if the property was added to the bag, otherwise, it is FALSE.

void ClearAll()

Removes all properties from the bag.

long Count()

Returns the number of properties.

BSTR Name(long PropertyIdx)

Retrieves the indicated property name in the bag.

VARIANT Value(VARIANT Property)

Retrieves the indicated property in the bag.

void Value(VARIANT Property, VARIANT Val)

Sets the indicated property in the bag.