QuickOPC 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 error description string for the specified element.
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.
value
The error description string for the specified element.
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