'Declaration
<ExtensionAttribute()> Public Shared Function BelongsTo( _ ByVal abstractMapping As AbstractMapping, _ ByVal targetObject As Object, _ ByVal recurse As Boolean _ ) As Boolean
'Usage
Dim abstractMapping As AbstractMapping Dim targetObject As Object Dim recurse As Boolean Dim value As Boolean value = AbstractMappingExtension.BelongsTo(abstractMapping, targetObject, recurse)
[Extension()] public static bool BelongsTo( AbstractMapping abstractMapping, object targetObject, bool recurse )
[Extension()] public: static bool BelongsTo( AbstractMapping^ abstractMapping, Object^ targetObject, bool recurse )
Parameters
- abstractMapping
- The mapping.
The value of this parameter cannot be
null
(Nothing
in Visual Basic). - targetObject
- The target object to be tested.
The value of this parameter cannot be
null
(Nothing
in Visual Basic). - recurse
false
if the target object must belong directly to this mapping;true
if the target object can also belong to the parent, recursively.
Return Value
true
if the target object belongs to this mapping; false
otherwise.