Click or drag to resize
ConnectionExtensionsItemByQuery Method (IConnection, Command)
Get a single item from the database using the specified query. 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 IReadOnlyItem ItemByQuery(
	this IConnection conn,
	Command request
)

Parameters

conn
Type: Innovator.ClientIConnection
Server connection
request
Type: Innovator.ClientCommand
Query/command which should return a single item

Return Value

Type: IReadOnlyItem
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