LinqDataSourceView.ValidateInsertSupported Method (IDictionary)

 

Validates that the conditions exist to perform an insert operation.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

Protected Overridable Sub ValidateInsertSupported (
	values As IDictionary
)

Parameters

values
Type: System.Collections.IDictionary

A dictionary that contains row values to insert.

Exception Condition
InvalidOperationException

The GroupBy or SelectNew property contains a value or the values parameter does not contain any items.

NotSupportedException

CanInsert is false.

You cannot insert data when the GroupBy property or the SelectNew property contains a value other than null. For more information, see the LinqDataSource.EnableInsert property.

.NET Framework
Available since 3.5
Return to top
Show: