IRegionBehaviorFactory.AddIfMissing Method
Adds a particular type of RegionBehavior if it was not already registered. the behaviorKey string is used to check if the behavior is already present
Namespace: Microsoft.Practices.Composite.Presentation.Regions
Assembly: Microsoft.Practices.Composite.Presentation (in Microsoft.Practices.Composite.Presentation.dll)
Syntax
'Declaration
Sub AddIfMissing ( _
behaviorKey As String, _
behaviorType As Type _
)
void AddIfMissing(
string behaviorKey,
Type behaviorType
)
void AddIfMissing(
String^ behaviorKey,
Type^ behaviorType
)
function addIfMissing(behaviorKey, behaviorType);
Parameters
- behaviorKey
Type: System.String
The behavior key that's used to find if a certain behavior is already added.
- behaviorType
Type: System.Type
Type of the behavior to add. .
See Also
IRegionBehaviorFactory Interface
Microsoft.Practices.Composite.Presentation.Regions Namespace