OPC Studio User's Guide and Reference
AddTypeMappingDefinition Method



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.LiveMapping Namespace > AbstractMappingProvider Class : AddTypeMappingDefinition Method
The type for which the type mapping definition is being added.

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

The type mapping definition.

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

Adds a type mapping definition for a specified type to this mapping provider.
Syntax
'Declaration
 
Public Sub AddTypeMappingDefinition( _
   ByVal type As Type, _
   ByVal typeMappingDefinition As AbstractTypeMappingDefinition _
) 
'Usage
 
Dim instance As AbstractMappingProvider
Dim type As Type
Dim typeMappingDefinition As AbstractTypeMappingDefinition
 
instance.AddTypeMappingDefinition(type, typeMappingDefinition)
public void AddTypeMappingDefinition( 
   Type type,
   AbstractTypeMappingDefinition typeMappingDefinition
)
public:
void AddTypeMappingDefinition( 
   Type^ type,
   AbstractTypeMappingDefinition^ typeMappingDefinition
) 

Parameters

type
The type for which the type mapping definition is being added.

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

typeMappingDefinition
The type mapping definition.

The value of this parameter can 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