# IErrorProvider

URL: https://docs.wisej.com/api/wisej.web/interfaces/wisej.web.ierrorprovider

Version: 4.1
Namespace: **Wisej.Web**

Assembly: **Wisej.Framework** (4.1.0.0)

Exposes a common api implemented by components that can collect errors in relation to aControl .

- C# - VB.NET

```csharp
public interface IErrorProvider
```

```visual
Public Interface IErrorProvider
```

## Methods

### ![Instance member](/img/api/instance.png) GetError(control)

Returns the current error description string for the specified control.

| Parameter | Type | Description | **control** | Control | The item to get the error description string for. 

**Returns:**[String](https://docs.microsoft.com/dotnet/api/system.string) . The error description string for the specified control.

### ![Instance member](/img/api/instance.png) SetError(control, value)

Sets the error description string for the specified control.

| Parameter | Type | Description | **control** | Control | The control to set the error description string for. | **value** | [String](https://docs.microsoft.com/dotnet/api/system.string) | The error description string, or null or [Empty](https://docs.microsoft.com/dotnet/api/system.string.empty) to remove the error. 

## Implemented By

| Name | Description | [Label](/api/wisej.web/content/wisej.web.label) | Represents a label control. | LinkLabel | Represents an hyper-link control. | ErrorProvider | Provides a user interface for indicating that a control on a form has an error associated with it.
