ChildCollectionDefinitionTChildObject Constructor |
Creates new child collection definition with the specified name and based on the specified reference
Namespace:
Aloe.SystemFrameworks.Domain
Assembly:
Aloe.SystemFrameworks.Domain (in Aloe.SystemFrameworks.Domain.dll) Version: 20.1.3.5
Syntaxpublic ChildCollectionDefinition(
string name,
Func<ObjectReference> getReferenceFromChildToParent
)
Public Sub New (
name As String,
getReferenceFromChildToParent As Func(Of ObjectReference)
)
public:
ChildCollectionDefinition(
String^ name,
Func<ObjectReference^>^ getReferenceFromChildToParent
)
new :
name : string *
getReferenceFromChildToParent : Func<ObjectReference> -> ChildCollectionDefinition
Parameters
- name
- Type: SystemString
The name of the child collection - getReferenceFromChildToParent
- Type: SystemFuncObjectReference
Function, which returns the reference on which to base the child collection.
Remarks
The reference is returned by a function, because both references and child collections are usually statically
constructed and the actual reference might not be initialized by the time the child collection is initialized.
See Also