EntitySchemaTEntityAddPropertyT Method |
Namespace:
AGI.Foundation.Tracking
Assembly:
AGI.Foundation.Tracking (in AGI.Foundation.Tracking.dll) Version: 24.3.420.0 (24.3.420.0)
Syntax public void AddProperty<T>(
string name,
EntityTransactedPropertyGetter<TEntity, T> transactedPropertyGetter
)
Public Sub AddProperty(Of T) (
name As String,
transactedPropertyGetter As EntityTransactedPropertyGetter(Of TEntity, T)
)
public:
generic<typename T>
void AddProperty(
String^ name,
EntityTransactedPropertyGetter<TEntity, T>^ transactedPropertyGetter
)
member AddProperty :
name : string *
transactedPropertyGetter : EntityTransactedPropertyGetter<'TEntity, 'T> -> unit
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 Exception | Condition |
---|
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