Class Scope
Represents an enumeration of all Logix Scope options.
public class Scope : LogixEnum<Scope, string>, IEquatable<LogixEnum<Scope, string>>, IComparable<LogixEnum<Scope, string>>
- Inheritance
-
Scope
- Implements
- Inherited Members
Fields
Controller
Represents a Controller Scope value.
public static readonly Scope Controller
Field Value
Null
Represents a Null Scope value.
public static readonly Scope Null
Field Value
Remarks
A Null scope will occur on elements objects that have not been added to a container.
Program
Represents a Program Scope value.
public static readonly Scope Program
Field Value
Methods
FromElement(XElement)
public static Scope FromElement(XElement element)
Parameters
elementXElementThe element for which to determine the scope of.
Returns
- Scope
Program if the element has a
Programelement ancestor, Controller if the element has aControllerelement ancestor, Null otherwise.