LinqDataSourceView.ValidateInsertSupported Method (IDictionary)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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 virtual void ValidateInsertSupported(
	IDictionary values
)

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: