Condividi tramite


QueryResult Class

Definition

Representation of a single Device Provisioning Service query response with a JSON deserializer.

public class QueryResult
type QueryResult = class
Public Class QueryResult
Inheritance
QueryResult

Remarks

It is the result of any query for the provisioning service. This class will parse the result and return it in a best format possible. For the known formats in QueryResultType, you can just cast the items. In case of unknown type, the items will contain a list of string and you shall parse it by your own.

The provisioning service query result is composed by 2 system properties and a body. This class exposes it with 3 getters, QueryType, Items, and ContinuationToken.

The system properties are:

  • type: Identify the type of the content in the body. You can use it to cast the objects in the items list. See QueryResultType for the possible types and classes to cast.
  • continuationToken: Contains the token the uniquely identify the next page of information. The service will return the next page of this query when you send a new query with this token.

Constructors

QueryResult(String, String, String)

CONSTRUCTOR

Properties

ContinuationToken

Getter for the query result continuation token.

Items

Getter for the list of query result items.

QueryType

Getter for the query result type.

Type

Getter for the query result Type.

Methods

ToString()

Convert this object in a pretty print format.

Applies to