OPC Studio User's Guide and Reference
CreateMappingContext Method (AbstractMappingProvider)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.LiveMapping Namespace > AbstractMappingProvider Class : CreateMappingContext Method
The template that contains initial values for the new mapping context.

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

Creates a new mapping context, based on a given template.
Syntax
'Declaration
 
<NotNullAttribute()>
Public MustOverride Function CreateMappingContext( _
   ByVal mappingContextTemplate As AbstractMappingContext _
) As AbstractMappingContext
'Usage
 
Dim instance As AbstractMappingProvider
Dim mappingContextTemplate As AbstractMappingContext
Dim value As AbstractMappingContext
 
value = instance.CreateMappingContext(mappingContextTemplate)
[NotNull()]
public abstract AbstractMappingContext CreateMappingContext( 
   AbstractMappingContext mappingContextTemplate
)
[NotNull()]
public:
abstract AbstractMappingContext^ CreateMappingContext( 
   AbstractMappingContext^ mappingContextTemplate
) 

Parameters

mappingContextTemplate
The template that contains initial values for the new mapping context.

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

Return Value

The newly created mapping context.

This method never returns 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