Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ RowError

string System.Data.DataRow.RowError
getset

Definition at line 90 of file DataRow.cs.

91 {
92 get
93 {
94 if (_error != null)
95 {
96 return _error.Text;
97 }
98 return string.Empty;
99 }
101 set
102 {
103 DataCommonEventSource.Log.Trace("<ds.DataRow.set_RowError|API> {0}, value='{1}'", _objectID, value);
104 if (_error == null)
105 {
106 if (!string.IsNullOrEmpty(value))
107 {
108 _error = new DataError(value);
109 }
111 }
112 else if (_error.Text != value)
113 {
116 }
117 }
118 }
DataError _error
Definition DataRow.cs:36
void RowErrorChanged()
Definition DataRow.cs:411
readonly int _objectID
Definition DataRow.cs:44

Referenced by System.Data.ForeignKeyConstraint.IsConstraintViolated(), and System.Data.UniqueConstraint.IsConstraintViolated().