Export (0) Print
Expand All

ParseException Class

Represents errors that occur when a LinqDataSource control parses values to create a query.

Namespace:  System.Web.Query.Dynamic
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public class ParseException : Exception

The ParseException object contains information about exceptions that occur when the LinqDataSource control parses values in order to dynamically create a query.

If the Select property includes a property that is not in the data object, the LinqDataSource control raises a ParseException exception. The message indicates that the property does not exist in the data object.

You can assign the data object in the Selecting event by setting the Result property to an object that is returned from a query. If you select a property that does not exist in the data object, the LinqDataSource control raises a ParseException exception. The message indicates that the particular property does not exist in an AnonymousType object.

System.Object
  System.Exception
    System.Web.Query.Dynamic.ParseException

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5

Community Additions

ADD
Show:
© 2014 Microsoft