AddPropertyDefinition Method
Adds a property definition.
Required Permissions
ManagePropertyDefinitionSyntax
public PropDefInfo AddPropertyDefinition(
System.string systemName,
System.string displayName,
DataType dataType,
System.bool isBasicSearchEnabled,
System.bool isActive,
System.object defaultValue,
System.string[] mappedEntityClassIds,
EntClassCtntSrcPropCfg[] entityClassCtntSrcPropDefs,
PropConstr[] baseConstraints,
System.object[] listValues
)Public Function AddPropertyDefinition( _
ByVal systemName As System.String, _
ByVal displayName As System.String, _
ByVal dataType As DataType, _
ByVal isBasicSearchEnabled As System.Boolean, _
ByVal isActive As System.Boolean, _
ByVal defaultValue As System.Object, _
ByVal mappedEntityClassIds() As System.String, _
ByVal entityClassCtntSrcPropDefs() As EntClassCtntSrcPropCfg, _
ByVal baseConstraints() As PropConstr, _
ByVal listValues() As System.Object _
) As PropDefInfoParameters
| Name | Description |
|---|---|
| systemName | The system name of the Property Definition. This value must be a GUID with the following format (lower case): xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx |
| displayName | The display name. |
| dataType | The data type. |
| isBasicSearchEnabled | If true, these property values are included for basic searches. If false, the property values are not searched during a basic search. |
| isActive | If true, the property definition is active. |
| defaultValue | The default value. |
| mappedEntityClassIds | A list of entity types that the property definition can be used with. |
| entityClassCtntSrcPropDefs | The mappings to content source properties. Must be the same size as 'mappedEntityClassIds'. |
| baseConstraints | The base constraints. These values can be overwritten on a per-Category basis. |
| listValues | A list of legal values for the property. A null value means that any value can be used. Only applies to String and Numeric types. |
Return Value
The new Property Definition object and related information.