# Value() property

Use the ErrorInfo.Value property to get the error constant associated with an ErrorInfo object. Most UL for .NET methods return an ErroInfo object. If an error occurs, an ErroInfo object is returned with a non-zero value in the Value property.

Member of the ErrorInfo class.

## Property prototype

VB .NET

Public ReadOnly Property Value As MccDaq.ErrorInfo.ErrorCode

C# .NET

public MccDaq.ErrorInfo.ErrorCode Value [get]

## Notes

- Refer to the ErrHandling() method for an alternate method of handling errors.