OPC Studio User's Guide and Reference
ShouldLoadFromType Method (UATypeMappingDefinition)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.LiveMapping Namespace > UATypeMappingDefinition Class : ShouldLoadFromType Method
The type candidate.

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

Determines whether the type mapping definition should be loaded from a given type.
Syntax
'Declaration
 
Public Overrides NotOverridable Function ShouldLoadFromType( _
   ByVal type As Type _
) As Boolean
'Usage
 
Dim instance As UATypeMappingDefinition
Dim type As Type
Dim value As Boolean
 
value = instance.ShouldLoadFromType(type)
public override bool ShouldLoadFromType( 
   Type type
)
public:
bool ShouldLoadFromType( 
   Type^ type
) override 

Parameters

type
The type candidate.

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

Return Value

true if the definition should be loaded from a given type; false otherwise.
Remarks
The type must be marked with UATypeAttribute should it be loaded.
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