OPC Studio User's Guide and Reference
RegisterOperation<TSource,TMapping> Method



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.LiveMapping Namespace > AbstractOperationContext Class : RegisterOperation<TSource,TMapping> Method
The type of the mapping source.
The type of the mapping.
The mapping to be registered for the operation.
The dictionary into which the mapping should be registered.
Registers a given mapping for certain mapping operation.
Syntax
'Declaration
 
Protected Shared Sub RegisterOperation
    (Of TSource As AbstractMappingSource,
     TMapping As AbstractMapping)( _
   ByVal mapping As TMapping, _
   ByVal operationDictionary As SourceToMappingsDictionary(Of TSource,TMapping) _
) 
'Usage
 
Dim mapping As TMapping
Dim operationDictionary As SourceToMappingsDictionary(Of TSource,TMapping)
 
AbstractOperationContext.RegisterOperation(Of TSource, TMapping)(mapping, operationDictionary)
protected static void RegisterOperation<TSource,TMapping>( 
   TMapping mapping,
   SourceToMappingsDictionary<TSource,TMapping> operationDictionary
)
where TSource: AbstractMappingSource
where TMapping: AbstractMapping
protected:
static void RegisterOperationgeneric<typename TSource>
generic<typename TMapping>
( 
   TMapping^ mapping,
   SourceToMappingsDictionary<TSource^,TMapping^>^ operationDictionary
) 
where TSource: AbstractMappingSource
where TMapping: AbstractMapping

Parameters

mapping
The mapping to be registered for the operation.
operationDictionary
The dictionary into which the mapping should be registered.

Type Parameters

TSource
The type of the mapping source.
TMapping
The type of the mapping.
Remarks
This is a helper method useful for implementation of concrete mappers.
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