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
valuestringThe string value.
Exceptions
- ArgumentNullException
valueis null.- ArgumentOutOfRangeException
valuelength 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
elementXElementThe element to parse as the new member object.
Exceptions
- ArgumentNullException
elementis null.- InvalidOperationException
elementdoes 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
inputSTRINGThe value to convert.
Returns
implicit operator STRING(string)
public static implicit operator STRING(string input)
Parameters
inputstringThe value to convert.