OPC Studio User's Guide and Reference
TryCheckDataType Method (SequenceData)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.DataTypeModel Namespace > SequenceData Class : TryCheckDataType Method
Data type to be checked.

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

Infrastructure.
Syntax
'Declaration
 
<JetBrains.Annotations.MustUseReturnValueAttribute()>
<JetBrains.Annotations.CanBeNullAttribute()>
<JetBrains.Annotations.PureAttribute()>
Protected Overrides NotOverridable Function TryCheckDataType( _
   ByVal dataType As DataType _
) As ArgumentException
'Usage
 
Dim instance As SequenceData
Dim dataType As DataType
Dim value As ArgumentException
 
value = instance.TryCheckDataType(dataType)
[JetBrains.Annotations.MustUseReturnValue()]
[JetBrains.Annotations.CanBeNull()]
[JetBrains.Annotations.Pure()]
protected override ArgumentException TryCheckDataType( 
   DataType dataType
)
[JetBrains.Annotations.MustUseReturnValue()]
[JetBrains.Annotations.CanBeNull()]
[JetBrains.Annotations.Pure()]
protected:
ArgumentException^ TryCheckDataType( 
   DataType^ dataType
) override 

Parameters

dataType
Data type to be checked.

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

Return Value

This method can return null (Nothing in Visual Basic).

This return value of this method should not be ignored.

Remarks

This method is pure, i.e. it does not have observable side effects.

This method or property does not throw any exceptions, aside from execution exceptions such as System.Threading.ThreadAbortException or System.OutOfMemoryException.

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