61 references to ElementState
System.Data (61)
fx\src\data\System\NewXml\DataPointer.cs (2)
675
ElementState
state = rowElem.ElementState;
676
Debug.Assert( state ==
ElementState
.Defoliated, "Region is accessed using column, but it's state is FOLIATED" );
fx\src\data\System\NewXml\DataSetMappper.cs (1)
219
if ( rowElem.ElementState ==
ElementState
.Defoliated )
fx\src\data\System\NewXml\RegionIterator.cs (18)
45
ElementState
oldState = rowElement.ElementState;
47
Debug.Assert( oldState !=
ElementState
.None );
56
Debug.Assert( (oldState ==
ElementState
.Defoliated) ? (rowElement.ElementState ==
ElementState
.Defoliated) : true );
71
ElementState
oldState = rowElement.ElementState;
73
Debug.Assert( oldState !=
ElementState
.None );
80
Debug.Assert( (oldState ==
ElementState
.Defoliated) ? (rowElement.ElementState ==
ElementState
.Defoliated) : true );
94
Debug.Assert( (oldState ==
ElementState
.Defoliated) ? (rowElement.ElementState ==
ElementState
.Defoliated) : true );
103
Debug.Assert( (oldState ==
ElementState
.Defoliated) ? (rowElement.ElementState ==
ElementState
.Defoliated) : true );
122
ElementState
oldState = rowElement.ElementState;
124
Debug.Assert( oldState !=
ElementState
.None );
130
Debug.Assert( (oldState ==
ElementState
.Defoliated) ? (rowElement.ElementState ==
ElementState
.Defoliated) : true );
138
Debug.Assert( (oldState ==
ElementState
.Defoliated) ? (rowElement.ElementState ==
ElementState
.Defoliated) : true );
fx\src\data\System\NewXml\XmlBoundElement.cs (10)
24
private
ElementState
state;
28
state =
ElementState
.None;
160
while ( state ==
ElementState
.Foliating || state ==
ElementState
.Defoliating )
163
return state !=
ElementState
.Defoliated;
167
internal
ElementState
ElementState {
172
internal void Foliate(
ElementState
newState ) {
187
ElementState
oldAutoFoliationState = doc.AutoFoliationState;
188
doc.AutoFoliationState =
ElementState
.WeakFoliation;
191
Foliate(
ElementState
.WeakFoliation );
fx\src\data\System\NewXml\XmlDataDocument.cs (28)
44
ElementState
autoFoliationState; // When XmlBoundElement will foliate because of memeber functions, this will contain the foliation mode: usually this is
114
if (r!=null && be.ElementState ==
ElementState
.Defoliated)
122
be.ElementState =
ElementState
.WeakFoliation;
148
if (r!=null && be.ElementState ==
ElementState
.Defoliated)
158
be.ElementState =
ElementState
.WeakFoliation;
174
internal
ElementState
AutoFoliationState {
378
if ( rowElem.ElementState !=
ElementState
.WeakFoliation )
391
rowElem.ElementState =
ElementState
.Defoliating;
418
rowElem.ElementState =
ElementState
.Defoliated;
529
internal void Foliate( XmlBoundElement node,
ElementState
newState ) {
531
Debug.Assert( newState ==
ElementState
.WeakFoliation || newState ==
ElementState
.StrongFoliation );
553
if ( node.ElementState ==
ElementState
.Defoliated ) {
556
else if ( node.ElementState ==
ElementState
.WeakFoliation && newState ==
ElementState
.StrongFoliation ) {
566
((XmlBoundElement)element).Foliate(
ElementState
.WeakFoliation );
583
private void EnsureFoliation( XmlBoundElement rowElem,
ElementState
foliation ) {
589
private void ForceFoliation( XmlBoundElement node,
ElementState
newState ) {
591
if ( node.ElementState !=
ElementState
.Defoliated )
599
node.ElementState =
ElementState
.Foliating;
1083
autoFoliationState =
ElementState
.StrongFoliation;
1174
if ( be.ElementState ==
ElementState
.None )
1175
be.ElementState =
ElementState
.WeakFoliation;
1228
rowElement.ElementState =
ElementState
.Defoliated;
1274
ForceFoliation( rowElement,
ElementState
.WeakFoliation);
2342
autoFoliationState =
ElementState
.StrongFoliation;
2545
EnsureFoliation( rowElem,
ElementState
.WeakFoliation );
2550
EnsureFoliation( rowElem,
ElementState
.WeakFoliation );
fx\src\data\System\NewXml\XPathNodePointer.cs (2)
364
if ( curBoundElem.ElementState ==
ElementState
.Defoliated ) {
1117
this._doc.Foliate( rowElem,
ElementState
.StrongFoliation );