ModelDataSourceView.CreateSelectResult Method (Object)

.NET Framework (current version)
 
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.

Returns the result of a Select operation after converting it to an IEnumerable collection if it is not already one.

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

Protected Overridable Function CreateSelectResult (
	result As Object
) As IEnumerable

Parameters

result
Type: System.Object

The result of a Select operation.

Return Value

Type: System.Collections.IEnumerable

The result of a Select operation, converted to an IEnumerable collection if it was not originally one.

Exception Condition
InvalidOperationException

The return value is not the correct type.

.NET Framework
Available since 4.5
Return to top
Show: