Show / Hide Table of Contents

Class CustomResponseDTO

Custom response returned if a custom request handler was invoked in the corresponding request.

Inheritance
object
CustomResponseDTO
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: Integration.DataContracts
Syntax
[DataContract]
[KnownType(typeof(DataTable))]
[KnownType(typeof(Dictionary<string, object>))]
[KnownType(typeof(List<object>))]
[KnownType(typeof(string[]))]
[KnownType(typeof(int[]))]
public class CustomResponseDTO
Remarks

The object value in the Data property can be a built-in value type, byte array, DataTable, Dictionary(string, object), List(object), string array or int array. The dictionary and list value can contain nested values of the same types listed above. Note that if you want to use other types you can handle serialization in the client and request handler and pass the serialized version of the object as a byte[] or string, e.g. using protobuf to serialize DataSet objects.

Properties

Data

Return values from the custom request handler.

Declaration
[DataMember(IsRequired = true)]
public IDictionary<string, object> Data { get; set; }
Property Value
Type Description
IDictionary<string, object>

The data from the custom request handler.

Remarks

The object value in the Data property can be a built-in value type, byte array, DataTable, Dictionary(string, object), List(object), string array or int array. The dictionary and list value can contain nested values of the same types listed above. Note that if you want to use other types you can handle serialization in the client and request handler and pass the serialized version of the object as a byte[] or string, e.g. using protobuf to serialize DataSet objects.

Back to top Created by Formpipe