Class STRING
- Namespace
- L5Sharp.Types.Predefined
- Assembly
- L5Sharp.dll
Represents a predefined String Logix data type.
public sealed class STRING : StringType, ILogixSerializable, IEnumerable<char>, IEnumerable
- Inheritance
-
STRING
- Implements
- Inherited Members
Constructors
STRING()
Creates a new empty STRING type.
public STRING()
STRING(string)
Creates a new STRING with the provided value.
public STRING(string value)
Parameters
value
stringThe string value.
Exceptions
- ArgumentNullException
value
is null.- ArgumentOutOfRangeException
value
length is greater than the predefined Logix string length of 82 characters.
STRING(XElement)
Creates a new StringType initialized from the provided XElement data.
public STRING(XElement element)
Parameters
element
XElementThe element to parse as the new member object.
Exceptions
- ArgumentNullException
element
is null.- InvalidOperationException
element
does not have required attributes or child elements.
Properties
Class
The class (atomic, predefined, user-defined) that the type belongs to.
public override DataTypeClass Class { get; }
Property Value
- DataTypeClass
A DataTypeClass option representing the class type.
Operators
implicit operator string(STRING)
public static implicit operator string(STRING input)
Parameters
input
STRINGThe value to convert.
Returns
implicit operator STRING(string)
public static implicit operator STRING(string input)
Parameters
input
stringThe value to convert.