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



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.LiveMapping Namespace > UAMappingProvider 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 Overrides NotOverridable Function CreateMappingContext( _
   ByVal mappingContextTemplate As AbstractMappingContext _
) As AbstractMappingContext
'Usage
 
Dim instance As UAMappingProvider
Dim mappingContextTemplate As AbstractMappingContext
Dim value As AbstractMappingContext
 
value = instance.CreateMappingContext(mappingContextTemplate)
[NotNull()]
public override AbstractMappingContext CreateMappingContext( 
   AbstractMappingContext mappingContextTemplate
)
[NotNull()]
public:
AbstractMappingContext^ CreateMappingContext( 
   AbstractMappingContext^ mappingContextTemplate
) override 

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