2 writes to _behavior
System.Data (2)
fx\src\data\System\Data\Common\DBConnectionString.cs (2)
79_behavior = behavior; 132_behavior = behavior;
17 references to _behavior
System.Data (17)
fx\src\data\System\Data\Common\DBConnectionString.cs (17)
138get { return _behavior; } 187KeyRestrictionBehavior behavior = _behavior; 194else if (this._behavior != entry._behavior) { // subset of the AllowOnly array 197if (KeyRestrictionBehavior.AllowOnly == entry._behavior) { // this PreventUsage and entry AllowOnly 226else if (KeyRestrictionBehavior.PreventUsage == this._behavior) { // both PreventUsage 269if (componentSet._behavior == KeyRestrictionBehavior.AllowOnly) { 270if (combinedSet._behavior == KeyRestrictionBehavior.AllowOnly) { 276else if (combinedSet._behavior == KeyRestrictionBehavior.PreventUsage) { 281Debug.Assert(false, string.Format("Unknown behavior for combined set: {0}", combinedSet._behavior)); 284else if (componentSet._behavior == KeyRestrictionBehavior.PreventUsage) { 285if (combinedSet._behavior == KeyRestrictionBehavior.AllowOnly) { 291else if (combinedSet._behavior == KeyRestrictionBehavior.PreventUsage) { 298Debug.Assert(false, string.Format("Unknown behavior for combined set: {0}", combinedSet._behavior)); 302Debug.Assert(false, string.Format("Unknown behavior for component set: {0}", componentSet._behavior)); 316switch(_behavior) { 338throw ADP.InvalidKeyRestrictionBehavior(_behavior);