Description
Add a new user-properties.
-
Return Type
-
None
-
Syntax
-
object.Add NameID, value, [NameSpace]
The Add Method syntax has these parts: |
| object | An expression evaluating to an object of type McProperties. | | NameID | Required. A Variant value. A property name as a String.
| | value | Required. 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.
| | NameSpace | Optional. 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.
|