Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Behavior Constructor (Boolean, BehaviorService)

Initializes a new instance of the Behavior class with the given BehaviorService.

Namespace:  System.Windows.Forms.Design.Behavior
Assembly:  System.Design (in System.Design.dll)

protected Behavior(
	bool callParentBehavior,
	BehaviorService behaviorService


Type: System.Boolean

true if the parent behavior should be called if it exists; otherwise, false.

Type: System.Windows.Forms.Design.Behavior.BehaviorService

The BehaviorService to use.


callParentBehavior is true, and behaviorService is null.

The parent behavior is the next behavior on the behavior stack maintained by the BehaviorService. If the callParentBehavior parameter is true, then the behaviorService parameter must not be null.

callParentBehavior indicates whether the base Behavior class should call the parent behavior, and then allow the BehaviorService select the correct parent behavior.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
© 2015 Microsoft