Click or drag to resize
ConnectionExtensionsItemByQuery Method (IConnection, Command, Boolean)
Get a single item from the database using the specified query asynchronously. If the result is not a single item, an exception will be thrown

Namespace: Innovator.Client
Assembly: Innovator.Client (in Innovator.Client.dll) Version: 2016.1.15.1759 (2016.01.15.1759)
Syntax
public static IPromise<IReadOnlyItem> ItemByQuery(
	this IConnection conn,
	Command request,
	bool async
)

Parameters

conn
Type: Innovator.ClientIConnection
Server connection
request
Type: Innovator.ClientCommand
Query/command which should return a single item
async
Type: SystemBoolean
Whether to perform this request asynchronously

Return Value

Type: IPromiseIReadOnlyItem
A promise to return a single readonly item

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IConnection. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also