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



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.LiveMapping Namespace > AbstractTypeMappingDefinition 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 Overridable Sub LoadFromType( _
   ByVal type As Type, _
   ByVal mappingProvider As AbstractMappingProvider _
) 
'Usage
 
Dim instance As AbstractTypeMappingDefinition
Dim type As Type
Dim mappingProvider As AbstractMappingProvider
 
instance.LoadFromType(type, mappingProvider)
public virtual void LoadFromType( 
   Type type,
   AbstractMappingProvider mappingProvider
)
public:
virtual void LoadFromType( 
   Type^ type,
   AbstractMappingProvider^ mappingProvider
) 

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