Behavior.Behavior(Boolean, BehaviorService) Constructor

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
)
protected Behavior (
	boolean callParentBehavior, 
	BehaviorService behaviorService
)
protected function Behavior (
	callParentBehavior : boolean, 
	behaviorService : BehaviorService
)
Not applicable.

Parameters

callParentBehavior

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

behaviorService

The BehaviorService to use.

Exception typeCondition

ArgumentNullException

callParentBehavior is true, and behaviorService is a null reference (Nothing in Visual Basic).

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 a null reference (Nothing in Visual Basic).

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

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: