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)
138
get { return
_behavior
; }
187
KeyRestrictionBehavior behavior =
_behavior
;
194
else if (this.
_behavior
!= entry.
_behavior
) { // subset of the AllowOnly array
197
if (KeyRestrictionBehavior.AllowOnly == entry.
_behavior
) { // this PreventUsage and entry AllowOnly
226
else if (KeyRestrictionBehavior.PreventUsage == this.
_behavior
) { // both PreventUsage
269
if (componentSet.
_behavior
== KeyRestrictionBehavior.AllowOnly) {
270
if (combinedSet.
_behavior
== KeyRestrictionBehavior.AllowOnly) {
276
else if (combinedSet.
_behavior
== KeyRestrictionBehavior.PreventUsage) {
281
Debug.Assert(false, string.Format("Unknown behavior for combined set: {0}", combinedSet.
_behavior
));
284
else if (componentSet.
_behavior
== KeyRestrictionBehavior.PreventUsage) {
285
if (combinedSet.
_behavior
== KeyRestrictionBehavior.AllowOnly) {
291
else if (combinedSet.
_behavior
== KeyRestrictionBehavior.PreventUsage) {
298
Debug.Assert(false, string.Format("Unknown behavior for combined set: {0}", combinedSet.
_behavior
));
302
Debug.Assert(false, string.Format("Unknown behavior for component set: {0}", componentSet.
_behavior
));
316
switch(
_behavior
) {
338
throw ADP.InvalidKeyRestrictionBehavior(
_behavior
);