Behavior Constructor (Boolean, BehaviorService)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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 Sub New (
	callParentBehavior As Boolean,
	behaviorService As BehaviorService
)

Parameters

callParentBehavior
Type: System.Boolean

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

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

The BehaviorService to use.

Exception Condition
ArgumentNullException

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
Available since 2.0
Return to top
Show: