OPC Studio User's Guide and Reference
LoadFromType Method (DATypeMappingDefinition)



OpcLabs.EasyOpcClassic Assembly > OpcLabs.EasyOpc.DataAccess.LiveMapping Namespace > DATypeMappingDefinition Class : LoadFromType Method
The type from which the definition should be loaded into this object.

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

The mapping provider to be used.

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

Loads the type definition from a given type, using a specified mapping provider.
Syntax
'Declaration
 
Public Overrides NotOverridable Sub LoadFromType( _
   ByVal type As Type, _
   ByVal mappingProvider As AbstractMappingProvider _
) 
'Usage
 
Dim instance As DATypeMappingDefinition
Dim type As Type
Dim mappingProvider As AbstractMappingProvider
 
instance.LoadFromType(type, mappingProvider)
public override void LoadFromType( 
   Type type,
   AbstractMappingProvider mappingProvider
)
public:
void LoadFromType( 
   Type^ type,
   AbstractMappingProvider^ mappingProvider
) override 

Parameters

type
The type from which the definition should be loaded into this object.

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

mappingProvider
The mapping provider to be used.

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