Properties.CreateProperty
Creates a Property object and returns it.
Syntax
Set myProperty = myProperties.CreateProperty
Parameters
myProperty
An object of type Property returned by the method.
myProperties
An object of type Properties.
Remarks
Always use this method to create a new Property object, rather than the generic VBScript CreateObject or New commands. (You cannot control the process in which the object is created using the generic VBScript commands, and this can make the object unusable by Sample Management.)
You must set the new Property object's Name and Value properties manually and add them to the Properties collection using the Properties.Add method. (CreateProperty does not add the Property to the Properties collection automatically.)
Examples
Set myProperty = myProperties.CreateProperty
myProperty.Name = "Test"
myProperty.Value = "Testing"
myProperties.Add myProperty
See also