QueryCollection 构造函数

定义

重载

QueryCollection(int pageSize, QueryType requestQueryType, IotHubConnectionString iotHubConnectionString, URL url, HttpMethod httpMethod, int httpConnectTimeout, int httpReadTimeout, Proxy proxy)

Constructor for non-sql based queries.

QueryCollection(int pageSize, QueryType requestQueryType, IotHubConnectionString iotHubConnectionString, URL url, HttpMethod httpMethod, long timeout)

Constructor for non-sql based queries.

<xreftitle>Deprecated</xreftitle>

<xrefdescription>

  <p>use <xref uid="com.microsoft.azure.sdk.iot.service.devicetwin.QueryCollection.QueryCollection(int,QueryType,IotHubConnectionString,URL,HttpMethod,int,int,Proxy)" data-throw-if-not-resolved="false" data-raw-source="QueryCollection(int, QueryType, IotHubConnectionString, URL, HttpMethod, int, int, Proxy)"></xref> instead. </p>

</xrefdescription>

QueryCollection(String query, int pageSize, QueryType requestQueryType, IotHubConnectionString iotHubConnectionString, URL url, HttpMethod httpMethod, int httpConnectTimeout, int httpReadTimeout, Proxy proxy)

Constructor for sql based queries

QueryCollection(String query, int pageSize, QueryType requestQueryType, IotHubConnectionString iotHubConnectionString, URL url, HttpMethod httpMethod, long timeout)

Constructor for sql based queries.

<xreftitle>Deprecated</xreftitle>

<xrefdescription>

  <p>use <xref uid="com.microsoft.azure.sdk.iot.service.devicetwin.QueryCollection.QueryCollection(String,int,QueryType,IotHubConnectionString,URL,HttpMethod,int,int,Proxy)" data-throw-if-not-resolved="false" data-raw-source="QueryCollection(String, int, QueryType, IotHubConnectionString, URL, HttpMethod, int, int, Proxy)"></xref> instead. </p>

</xrefdescription>

QueryCollection(int pageSize, QueryType requestQueryType, IotHubConnectionString iotHubConnectionString, URL url, HttpMethod httpMethod, int httpConnectTimeout, int httpReadTimeout, Proxy proxy)

Constructor for non-sql based queries.

protected QueryCollection(int pageSize, QueryType requestQueryType, IotHubConnectionString iotHubConnectionString, URL url, HttpMethod httpMethod, int httpConnectTimeout, int httpReadTimeout, Proxy proxy)

参数

pageSize
int

the size of the page to return per query collection response.

requestQueryType
QueryType

the type of query this is.

iotHubConnectionString
IotHubConnectionString

the connection string to connect with to query against.

url
URL

the url to query against.

httpMethod
HttpMethod

the http method to call with the query.

httpConnectTimeout
int

the http connect timeout to use.

httpReadTimeout
int

the http read timeout to use.

proxy
Proxy

the proxy type

例外

IllegalArgumentException

if page size is 0 or negative, or if the query type is null or unknown, or if the provided connection string is null, or if the provided url is null, or if the provided http method is null.

QueryCollection(int pageSize, QueryType requestQueryType, IotHubConnectionString iotHubConnectionString, URL url, HttpMethod httpMethod, long timeout)

Constructor for non-sql based queries.

<xreftitle>Deprecated</xreftitle>

<xrefdescription>

  <p>use <xref uid="com.microsoft.azure.sdk.iot.service.devicetwin.QueryCollection.QueryCollection(int,QueryType,IotHubConnectionString,URL,HttpMethod,int,int,Proxy)" data-throw-if-not-resolved="false" data-raw-source="QueryCollection(int, QueryType, IotHubConnectionString, URL, HttpMethod, int, int, Proxy)"></xref> instead. </p>

</xrefdescription>

protected QueryCollection(int pageSize, QueryType requestQueryType, IotHubConnectionString iotHubConnectionString, URL url, HttpMethod httpMethod, long timeout)

参数

pageSize
int

the size of the page to return per query collection response.

requestQueryType
QueryType

the type of query this is.

iotHubConnectionString
IotHubConnectionString

the connection string to connect with to query against.

url
URL

the url to query against.

httpMethod
HttpMethod

the http method to call with the query.

timeout
long

unused.

例外

IllegalArgumentException

if page size is 0 or negative, or if the query type is null or unknown, or if the provided connection string is null, or if the provided url is null, or if the provided http method is null

QueryCollection(String query, int pageSize, QueryType requestQueryType, IotHubConnectionString iotHubConnectionString, URL url, HttpMethod httpMethod, int httpConnectTimeout, int httpReadTimeout, Proxy proxy)

Constructor for sql based queries

protected QueryCollection(String query, int pageSize, QueryType requestQueryType, IotHubConnectionString iotHubConnectionString, URL url, HttpMethod httpMethod, int httpConnectTimeout, int httpReadTimeout, Proxy proxy)

参数

query
String

the sql query to use.

pageSize
int

the size of the page to return per query collection response.

requestQueryType
QueryType

the type of query this is.

iotHubConnectionString
IotHubConnectionString

the connection string to connect with to query against.

url
URL

the url to query against.

httpMethod
HttpMethod

the http method to call with the query.

httpConnectTimeout
int

the http connect timeout to use.

httpReadTimeout
int

the http read timeout to use.

proxy
Proxy

proxy type

例外

IllegalArgumentException

if page size is 0 or negative, or if the query type is null or unknown, of if the query string is null or empty, or if the provided connection string is null, or if the provided url is null, or if the provided http method is null.

QueryCollection(String query, int pageSize, QueryType requestQueryType, IotHubConnectionString iotHubConnectionString, URL url, HttpMethod httpMethod, long timeout)

Constructor for sql based queries.

<xreftitle>Deprecated</xreftitle>

<xrefdescription>

  <p>use <xref uid="com.microsoft.azure.sdk.iot.service.devicetwin.QueryCollection.QueryCollection(String,int,QueryType,IotHubConnectionString,URL,HttpMethod,int,int,Proxy)" data-throw-if-not-resolved="false" data-raw-source="QueryCollection(String, int, QueryType, IotHubConnectionString, URL, HttpMethod, int, int, Proxy)"></xref> instead. </p>

</xrefdescription>

protected QueryCollection(String query, int pageSize, QueryType requestQueryType, IotHubConnectionString iotHubConnectionString, URL url, HttpMethod httpMethod, long timeout)

参数

query
String

the sql query to use.

pageSize
int

the size of the page to return per query collection response.

requestQueryType
QueryType

the type of query this is.

iotHubConnectionString
IotHubConnectionString

the connection string to connect with to query against.

url
URL

the url to query against.

httpMethod
HttpMethod

the http method to call with the query.

timeout
long

unused.

例外

IllegalArgumentException

if page size is 0 or negative, or if the query type is null or unknown, of if the query string is null or empty, or if the provided connection string is null, or if the provided url is null, or if the provided http method is null.

适用于