Class ApplicationResponse
- Namespace
- Dynamicweb.Core
- Assembly
- Dynamicweb.Core.dll
The ApplicationResponse class gives information about the result of a given application service operation.
[Serializable]
public class ApplicationResponse : ApplicationResponse<object>, ISerializable
- Inheritance
-
ApplicationResponse
- Implements
- Inherited Members
Constructors
ApplicationResponse()
Initializes the Response class with a value indicating the success or failure of the operation returning the response
public ApplicationResponse()
Remarks
Initializes as succeded.
ApplicationResponse(bool)
Initializes the Response class with a value indicating the success or failure of the operation returning the response
public ApplicationResponse(bool succeeded)
Parameters
succeededbool- A value indicating the success or failure of the operation returning the response
ApplicationResponse(bool, object)
Initializes the Response class with a value indicating the success or failure of the operation returning the response, along with any relevant return data of the generic type T
public ApplicationResponse(bool succeeded, object data)
Parameters
succeededbool- A value indicating the success or failure of the operation returning the response
dataobject- The data returned from the operation
ApplicationResponse(Exception)
Initializes a new instance of the Response class with an Exception indicating what went wrong in the operation returning the response
public ApplicationResponse(Exception exceptionData)
Parameters
exceptionDataException- A Exception explaining why the operation failed
ApplicationResponse(Exception, object)
Initializes a new instance of the Response class with an Exception indicating what went wrong in the operation returning the response
public ApplicationResponse(Exception exceptionData, object data)
Parameters
exceptionDataException- A Exception explaining why the operation failed
dataobject- The data returned from the operation
ApplicationResponse(SerializationInfo, StreamingContext)
Initializes a new instance of the ApplicationResponse class.
protected ApplicationResponse(SerializationInfo info, StreamingContext context)
Parameters
infoSerializationInfo- The information.
contextStreamingContext- The context.