Class SelectNode
Class for parsing and storing AML select attributes
Inheritance
Inherited Members
Namespace: Innovator.Client
Assembly: Innovator.Client.dll
Syntax
public class SelectNode : ICollection<SelectNode>, IEnumerable<SelectNode>, IEnumerable
Remarks
Use FromString(String) to parse an AML select attribute.
Constructors
| Improve this Doc View SourceSelectNode()
Initializes a new SelectNode instance for storing an AML select path
Declaration
public SelectNode()
SelectNode(String)
Initializes a new SelectNode instance with a property name.
Declaration
public SelectNode(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the property to store in the node |
Properties
| Improve this Doc View SourceCount
Number of child columns
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Implements
Item[Int32]
Access a child sub-select by index
Declaration
public SelectNode this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Property Value
Type | Description |
---|---|
SelectNode |
Name
Name of the current column
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceAdd(SelectNode)
Add a child SelectNode to this instance
Declaration
public void Add(SelectNode item)
Parameters
Type | Name | Description |
---|---|---|
SelectNode | item |
Implements
Clear()
Removes all child items from the SelectNode
Declaration
public void Clear()
Implements
Contains(SelectNode)
Determines whether the SelectNode contains a specific value.
Declaration
public bool Contains(SelectNode item)
Parameters
Type | Name | Description |
---|---|---|
SelectNode | item | The child SelectNode to locate in the SelectNode. |
Returns
Type | Description |
---|---|
System.Boolean | true if |
Implements
CopyTo(SelectNode[], Int32)
Copies the elements of the SelectNode to an System.Array, starting at a particular System.Array index.
Declaration
public void CopyTo(SelectNode[] array, int arrayIndex)
Parameters
Type | Name | Description |
---|---|---|
SelectNode[] | array | The one-dimensional System.Array that is the destination of the elements copied from SelectNode. The System.Array must have zero-based indexing. |
System.Int32 | arrayIndex | The zero-based index in |
Implements
EnsurePath(IEnumerable<String>)
Ensure that the path of properties exists in the select statement
Declaration
public void EnsurePath(IEnumerable<string> path)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.String> | path |
Examples
Sending in new string[] {"created_by_id, first_name"}
will result in the select statement created_by_id(first_name)
EnsurePath(String[])
Ensure that the path of properties exists in the select statement
Declaration
public void EnsurePath(params string[] path)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | path |
Examples
Sending in "created_by_id, first_name"
will result in the select statement created_by_id(first_name)
FromString(String)
Parse an AML select statement into a SelectNode structure
Declaration
public static SelectNode FromString(string select)
Parameters
Type | Name | Description |
---|---|---|
System.String | select |
Returns
Type | Description |
---|---|
SelectNode |
GetEnumerator()
Returns an enumerator that iterates through the child nodes.
Declaration
public IEnumerator<SelectNode> GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<SelectNode> | An enumerator that can be used to iterate through the child nodes. |
Implements
Remove(SelectNode)
Removes the first occurrence of the child SelectNode from the SelectNode.
Declaration
public bool Remove(SelectNode item)
Parameters
Type | Name | Description |
---|---|---|
SelectNode | item | The object to remove from the SelectNode. |
Returns
Type | Description |
---|---|
System.Boolean | true if |
Implements
Sort()
Sort the properties by name
Declaration
public void Sort()
ToString()
Returns a System.String in the format of an AML select attribute
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
ToString(IEnumerable<SelectNode>)
Returns a System.String in the format of an AML select attribute
Declaration
public static string ToString(IEnumerable<SelectNode> items)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<SelectNode> | items |
Returns
Type | Description |
---|---|
System.String |
UnionWith(SelectNode)
Union the children of two select nodes
Declaration
public void UnionWith(SelectNode item)
Parameters
Type | Name | Description |
---|---|---|
SelectNode | item |
Operators
| Improve this Doc View SourceImplicit(String to SelectNode)
Performs an implicit conversion from System.String to SelectNode.
Declaration
public static implicit operator SelectNode(string select)
Parameters
Type | Name | Description |
---|---|---|
System.String | select |
Returns
Type | Description |
---|---|
SelectNode |
Explicit Interface Implementations
| Improve this Doc View SourceICollection<SelectNode>.IsReadOnly
Declaration
bool ICollection<SelectNode>.IsReadOnly { get; }
Returns
Type | Description |
---|---|
System.Boolean |
Implements
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator |