DSDataResponse ClassDSWS API (.NET)

[This is preliminary documentation and is subject to change.]

Defines the DSDataRequest's response
Inheritance Hierarchy

System Object
  Datastream.DswsApi DSDataResponse

Namespace: Datastream.DswsApi
Assembly: Datastream.DswsApi.NET4.0 (in Datastream.DswsApi.NET4.0.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public class DSDataResponse
Remarks

A data response contains the values retrieved corresponding to the issued request. DataTypeValues is accessed to obtain the relevant data.
Examples

Following example illustrates accessing the response properties
// Access the response 
foreach (var datatypeValue in response.DataTypeValues)
{
    Trace.WriteLine(string.Format("----DataType: {0}", datatypeValue.DataType));

    foreach (var symbol in datatypeValue.SymbolValues)
    {
        Trace.WriteLine(string.Format("Symbol: {0}", symbol.Symbol));
        Trace.WriteLine(string.Format("Value Type: {0}", symbol.Type));
        Trace.WriteLine(string.Format("Values Length: {0}", symbol.Value is Array ? ((Array)symbol.Value).GetLength(0) : 0));
    }
}
Version Information

.NET API Framework

Supported in: 4.1, 3.6
See Also