Add Method (Properties Collection)

See Also         Example         Applies To

Adds a new property to the list of available items in the Properties collection.

Syntax

expression.Add(PropertyKey As String, PropertyValue)

expression   An expression that returns the Properties collection.

PropertyKey   Required String. A string that contains the name of the property that you want to add. For more information, see the table of properties in the Properties collection.

PropertyValue   Required Variant. The value of the property.

Remarks

You can programmatically add and remove categories and approval ratings for the Properties collection.