Description

Add a new user-properties.

Return Type

None  

Syntax

object.Add NameID, value, [NameSpace]

The Add Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McProperties.
NameIDRequired. A Variant value.

A property name as a String.

valueRequired. A Variant value.

A VARIANT containing the property value. This could be a numerical value, an array, a string, an interface pointer, or any type supported by VARIANT.

NameSpaceOptional. A String value.

Optional namespace. Namespaces can be used to avoid name conficts between different properties with identical names.

Remarks

An error will be generated if the property is already found in the collection. See Item for more details. Category must be registered with the object manager in order to be used (See McObjectManager.IMcObjects.RegisterCategory). Some categories like “Properties” are predefined, see mcobjRegCategories.

Exceptions

E_ACCESSDENIED error if property is already found in the collection.