RegionBehaviorFactory.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.Prism.Regions
Assembly: Microsoft.Practices.Prism (in Microsoft.Practices.Prism.dll)
Syntax
public void AddIfMissing(
string behaviorKey,
Type behaviorType
)
'Declaration
Public Sub AddIfMissing ( _
behaviorKey As String, _
behaviorType As Type _
)
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.
Implements
IRegionBehaviorFactory.AddIfMissing(String, Type)