Click or drag to resize
ConnectionExtensionsApply Method
Get the result of executing the specified AML query

Namespace: Innovator.Client
Assembly: Innovator.Client (in Innovator.Client.dll) Version: 2016.1.15.1759 (2016.01.15.1759)
Syntax
public static IReadOnlyResult Apply(
	this IConnection conn,
	Command query,
	params Object[] parameters
)

Parameters

conn
Type: Innovator.ClientIConnection
Connection to execute the query on
query
Type: Innovator.ClientCommand
Query to be performed. If parameters are specified, they will be substituted into the query
parameters
Type: SystemObject
Parameters to be injected into the query

Return Value

Type: IReadOnlyResult
A read-only result

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).
Examples
C#
// Get preliminary parts which have existed for a little bit of time
var components = conn.Apply(@"<Item type="Part" action="get"><classification>@0</classification><created_on condition="lt">@1</created_on><state>Preliminary</state></Item>", classification, DateTime.Now.AddMinutes(-20)).Items();
See Also