OPC Studio User's Guide and Reference
CollectTypeMappings Method



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.LiveMapping Namespace > AbstractMappingProvider Class : CollectTypeMappings Method
The mapping definition for the type whose mappings should be collected.

The value of this parameter cannot be null (Nothing in Visual Basic).

The type of the target object.

The value of this parameter cannot be null (Nothing in Visual Basic).

The target object.

The value of this parameter cannot be null (Nothing in Visual Basic).

The mapping context.

The value of this parameter cannot be null (Nothing in Visual Basic).

The current mapper.

The value of this parameter cannot be null (Nothing in Visual Basic).

Maps all members in a given type mapping definition.
Syntax
'Declaration
 
Protected Overridable Sub CollectTypeMappings( _
   ByVal typeMappingDefinition As AbstractTypeMappingDefinition, _
   ByVal targetType As Type, _
   ByVal targetObject As Object, _
   ByVal mappingContext As AbstractMappingContext, _
   ByVal mapper As AbstractMapper _
) 
'Usage
 
Dim instance As AbstractMappingProvider
Dim typeMappingDefinition As AbstractTypeMappingDefinition
Dim targetType As Type
Dim targetObject As Object
Dim mappingContext As AbstractMappingContext
Dim mapper As AbstractMapper
 
instance.CollectTypeMappings(typeMappingDefinition, targetType, targetObject, mappingContext, mapper)

Parameters

typeMappingDefinition
The mapping definition for the type whose mappings should be collected.

The value of this parameter cannot be null (Nothing in Visual Basic).

targetType
The type of the target object.

The value of this parameter cannot be null (Nothing in Visual Basic).

targetObject
The target object.

The value of this parameter cannot be null (Nothing in Visual Basic).

mappingContext
The mapping context.

The value of this parameter cannot be null (Nothing in Visual Basic).

mapper
The current mapper.

The value of this parameter cannot be null (Nothing in Visual Basic).

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also