Table of Contents

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 string

The 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 XElement

The 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)

Converts the provided STRING to a string value.

public static implicit operator string(STRING input)

Parameters

input STRING

The value to convert.

Returns

string

A string type value.

implicit operator STRING(string)

Converts the provided string to a STRING value.

public static implicit operator STRING(string input)

Parameters

input string

The value to convert.

Returns

STRING

A STRING type value.