Click or drag to resize

EntitySchemaTEntityAddPropertyT Method

Namespace:  AGI.Foundation.Tracking
Assembly:  AGI.Foundation.Tracking (in AGI.Foundation.Tracking.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax
public void AddProperty<T>(
	string name,
	EntityTransactedPropertyGetter<TEntity, T> transactedPropertyGetter
)

Parameters

name
Type: SystemString
The name of the property.
transactedPropertyGetter
Type: AGI.Foundation.TrackingEntityTransactedPropertyGetterTEntity, T
A callback to use to obtain the TransactedPropertyT.

Type Parameters

T
The type of the property.
Exceptions
ExceptionCondition
ArgumentNullException Thrown when name or transactedPropertyGetter is .
ArgumentException Thrown when name is an empty string, or if a property with the same name already exists in the schema.
See Also