PropertyObject.NewSubProperty
- Mise à jour2025-07-21
- Temps de lecture : 2 minute(s)
PropertyObject.NewSubProperty
Syntax
PropertyObject.NewSubProperty( lookupString, ValueType, asArray, typeNameParam, options)
Purpose
Creates a new subproperty with the name the lookupString parameter specifies.
Remarks
Parameters
lookupString As String
[In] Pass the lookup string for the new subproperty to create. If you pass a lookup string with multiple levels (such as "x.y.z"), this method creates all the necessary intermediate container objects. Refer to lookup string for more information about the strings you can use.
ValueType As PropertyValueTypes
[In] Specifies the type of value you want the new subproperty to store.
asArray As Boolean
[In] Pass True to make the new subproperty an array with elements that are of the type you specify in the ValueType parameter.
typeNameParam As String
[In] Pass the name of an existing type if you want to create the new subproperty as an instance of a named type . Otherwise, pass an empty string. If you pass a type name, you must pass PropValType_NamedType for the ValueType parameter.
options As Long
[In] Pass 0 to specify the default behavior, or pass one or more PropertyOptions constants. Use the bitwise-OR operator to specify multiple options. You do not need to pass the InsertIfMissing option to create the new subproperty. Pass DoNothingIfExists if you want the method to not report an error if the subproperty already exists.
See Also
PropertyObject.InsertSubProperty
PropertyObject.SetPropertyObject
PropertyObject.ValidateNewSubPropertyName
Thread Safety of the PropertyObject API and TestStand Variables