Table of Contents

Class Scope

Namespace
L5Sharp.Enums
Assembly
L5Sharp.dll

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

Scope

Null

Represents a Null Scope value.

public static readonly Scope Null

Field Value

Scope

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

Scope

Methods

FromElement(XElement)

Determines the Scope of the provided XElement by looking up the ancestral chain.

public static Scope FromElement(XElement element)

Parameters

element XElement

The element for which to determine the scope of.

Returns

Scope

Program if the element has a Program element ancestor, Controller if the element has a Controller element ancestor, Null otherwise.