New to Telerik UI for .NET MAUI? Start a free 30-day trial

Exception thrown when a conversion between types is not supported.

Definition

Namespace:Telerik.Maui

Assembly:Telerik.Maui.Core.dll

Syntax:

C#
public class NotSupportedConversionException : Exception, ISerializable

Inheritance: objectExceptionNotSupportedConversionException

Implements: ISerializable

Inherited Members Exception.GetBaseException()Exception.ToString()Exception.GetType()Exception.TargetSiteException.MessageException.DataException.InnerExceptionException.HelpLinkException.SourceException.HResultException.StackTraceException.SerializeObjectState...

Constructors

Initializes a new instance of the NotSupportedConversionException class with the specified value and type.

C#
public NotSupportedConversionException(object value, Type type)
Parameters:valueobject

The value that could not be converted.

typeType

The target type for the conversion.

Initializes a new instance of the NotSupportedConversionException class with a specified error message.

C#
public NotSupportedConversionException(string message)
Parameters:messagestring

The message that describes the error.