This documentation is archived and is not being maintained.

IMultipleResults Interface

Represents the results of mapped functions or queries with variable return sequences.

Namespace:  System.Data.Linq
Assembly:  System.Data.Linq (in System.Data.Linq.dll)

public interface IMultipleResults : IFunctionResult, 
	IDisposable

CREATE PROCEDURE VariableResultShapes(@shape int)
AS
if(@shape = 1)
    select CustomerID, ContactTitle, CompanyName from customers
else if(@shape = 2)
    select OrderID, ShipName from orders
	[Function(Name="dbo.VariableResultShapes")]
	[ResultType(typeof(VariableResultShapesResult1))]
	[ResultType(typeof(VariableResultShapesResult2))]
	public IMultipleResults VariableResultShapes([Parameter(DbType="Int")] System.Nullable<int> shape)
	{
		IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), shape);
		return ((IMultipleResults)(result.ReturnValue));
	}

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
Show: