IMultipleResults IMultipleResults IMultipleResults IMultipleResults Interface


변수 반환 시퀀스가 있는 매핑된 함수 또는 쿼리의 결과를 나타냅니다.Represents the results of mapped functions or queries with variable return sequences.

public interface class IMultipleResults : IDisposable, System::Data::Linq::IFunctionResult
public interface IMultipleResults : IDisposable, System.Data.Linq.IFunctionResult
type IMultipleResults = interface
    interface IFunctionResult
    interface IDisposable
Public Interface IMultipleResults
Implements IDisposable, IFunctionResult


CREATE PROCEDURE VariableResultShapes(@shape int)  
if(@shape = 1)  
    select CustomerID, ContactTitle, CompanyName from customers  
else if(@shape = 2)  
    select OrderID, ShipName from orders  
public IMultipleResults VariableResultShapes([Parameter(DbType="Int")] System.Nullable<int> shape)
    IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), shape);
    return ((IMultipleResults)(result.ReturnValue));
<FunctionAttribute(Name:="dbo.VariableResultShapes"), _
ResultType(GetType(VariableResultShapesResult1)), _
ResultType(GetType(VariableResultShapesResult2))> _
Public Function VariableResultShapes(<Parameter(DbType:="Int")> ByVal shape As System.Nullable(Of Integer)) As IMultipleResults
    Dim result As IExecuteResult = Me.ExecuteMethodCall(Me, CType(MethodInfo.GetCurrentMethod, MethodInfo), shape)
    Return CType(result.ReturnValue, IMultipleResults)
End Function


다음 SQL 코드 예제에서 결과 도형은 입력(shape =1 또는 shape = 2)에 따라 다릅니다.In the following SQL code example, the result shape depends on the input (shape =1 or shape = 2). 프로젝션이 반환 되는 순서 정의 되지 않습니다.The order that the projections are returned is undefined.


Dispose() Dispose() Dispose() Dispose()

관리되지 않는 리소스의 확보, 해제 또는 다시 설정과 관련된 애플리케이션 정의 작업을 수행합니다.Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

(Inherited from IDisposable)
GetResult<TElement>() GetResult<TElement>() GetResult<TElement>() GetResult<TElement>()

다음 결과를 지정된 형식의 시퀀스로 검색합니다.Retrieves the next result as a sequence of a specified type.


ReturnValue ReturnValue ReturnValue ReturnValue

함수의 반환 값을 가져옵니다.Gets the return value of a function.

(Inherited from IFunctionResult)

적용 대상