CSLA.NET 6.0.0
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
Csla.DataPortalResult< T > Class Template Reference

DataPortalResult defines the results of DataPortal operation. More...

Inheritance diagram for Csla.DataPortalResult< T >:
Csla.IDataPortalResult

Public Member Functions

 DataPortalResult (T obj, Exception ex, object userState)
 Create new instance of data portal result More...
 

Properties

Object [get]
 Object that DataPortal received as a result of current operation More...
 
Exception Error [get]
 Error that occurred during the DataPotal call. More...
 
object UserState [get]
 User defined information that was passed into data portal on initial request More...
 
- Properties inherited from Csla.IDataPortalResult
object Object [get]
 Gets the resulting object. More...
 
Exception Error [get]
 Gets any resulting error information. More...
 
object UserState [get]
 Gets the user state, pass through object More...
 

Detailed Description

DataPortalResult defines the results of DataPortal operation.

It contains object that was received from the server, an error (if occurred) and userState - user defined information that was passed into data portal on initial request

Template Parameters
TType of object that DataPortal received

Definition at line 19 of file DataPortalResult.cs.

Constructor & Destructor Documentation

◆ DataPortalResult()

Csla.DataPortalResult< T >.DataPortalResult ( obj,
Exception  ex,
object  userState 
)

Create new instance of data portal result

Parameters
objObject that DataPortal received as a result of current operation
exError that occurred during the DataPotal call. This will be null if no errors occurred.
userStateUser defined information that was passed into data portal on initial request

Definition at line 51 of file DataPortalResult.cs.

Property Documentation

◆ Error

Exception Csla.DataPortalResult< T >.Error
get

Error that occurred during the DataPotal call.

This will be null if no errors occurred.

Definition at line 29 of file DataPortalResult.cs.

◆ Object

T Csla.DataPortalResult< T >.Object
get

Object that DataPortal received as a result of current operation

Definition at line 24 of file DataPortalResult.cs.

◆ UserState

object Csla.DataPortalResult< T >.UserState
get

User defined information that was passed into data portal on initial request

Definition at line 35 of file DataPortalResult.cs.