ConnectionExtensionsApply Method |
Get the result of executing the specified AML query
Namespace: Innovator.ClientAssembly: 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
)
<ExtensionAttribute>
Public Shared Function Apply (
conn As IConnection,
query As Command,
ParamArray parameters As Object()
) As IReadOnlyResult
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:
IReadOnlyResultA 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
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