OPC Studio User's Guide and Reference
SetError Method



OpcLabs.BaseLibPresentation Assembly > OpcLabs.BaseLib.Presentation.ComponentModel Namespace > ErrorProvider Class : SetError Method
The component on which the extender property resides.

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

The error description string for the specified element.

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

Sets the error description string for the specified element.
Syntax
'Declaration
 
Public Sub SetError( _
   ByVal component As Object, _
   ByVal value As String _
) 
'Usage
 
Dim instance As ErrorProvider
Dim component As Object
Dim value As String
 
instance.SetError(component, value)
public void SetError( 
   object component,
   string value
)
public:
void SetError( 
   Object^ component,
   String^ value
) 

Parameters

component
The component on which the extender property resides.

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

value
The error description string for the specified element.

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