Class RegionAdapterMappings
      System.Object.Equals(System.Object)
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetHashCode()
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
    
      System.Object.ToString()
    
    Namespace: Sartorius.SAF.Presentation.Regions
Assembly: Sartorius.SAF.Presentation.dll
Syntax
public class RegionAdapterMappings
  Methods
View SourceGetMapping(Type)
Returns the adapter associated with the type provided.
Declaration
public IRegionAdapter GetMapping(Type controlType)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Type | controlType | The type to obtain the IRegionAdapter mapped.  | 
      
Returns
| Type | Description | 
|---|---|
| IRegionAdapter | The IRegionAdapter mapped to the   | 
      
Remarks
This class will look for a registered type for controlType and if there is not any,
it will look for a registered type for any of its ancestors in the class hierarchy.
If there is no registered type for controlType or any of its ancestors,
an exception will be thrown.
Exceptions
| Type | Condition | 
|---|---|
| System.Collections.Generic.KeyNotFoundException | When there is no registered type for   | 
      
RegisterMapping(Type, IRegionAdapter)
Registers the mapping between a type and an adapter.
Declaration
public void RegisterMapping(Type controlType, IRegionAdapter adapter)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Type | controlType | The type of the control.  | 
      
| IRegionAdapter | adapter | The adapter to use with the   | 
      
Exceptions
| Type | Condition | 
|---|---|
| System.ArgumentNullException | When any of   | 
      
| System.InvalidOperationException | If a mapping for   |