ElementReferenceProperty Class

A custom property added to a ElementViewModel to support properties that reference items in other ElementViewModels.

Namespace:  Microsoft.Practices.EnterpriseLibrary.Configuration.Design.ViewModel
Assembly:  Microsoft.Practices.EnterpriseLibrary.Configuration.DesignTime (in Microsoft.Practices.EnterpriseLibrary.Configuration.DesignTime.dll)

Syntax

'Declaration
Public Class ElementReferenceProperty _
    Inherits ElementProperty
public class ElementReferenceProperty : ElementProperty
public ref class ElementReferenceProperty : public ElementProperty
public class ElementReferenceProperty extends ElementProperty

Remarks

The element reference property relies on the ElementViewModels registered with ElementLookup to create and monitor ElementReferences. This allows the property to provide a default value if the reference is not yet available and provide monitoring for name changes in the referenced item. ElementReferenceProperty provides SuggestedValues and HasSuggestedValues to support drop-down lists for selecting values. If the referenced item is available, the properties of that referenced item can be found through ChildProperties. Reference properties are automatically created by the use of the ReferenceAttribute on the ConfigurationElement. Note: The declaring property must have a String property type

Inheritance Hierarchy

System.Object
  Microsoft.Practices.EnterpriseLibrary.Configuration.Design.ViewModel.ViewModel
    Microsoft.Practices.EnterpriseLibrary.Configuration.Design.ViewModel.Property
      Microsoft.Practices.EnterpriseLibrary.Configuration.Design.ViewModel.ElementProperty
        Microsoft.Practices.EnterpriseLibrary.Configuration.Design.ViewModel.ElementReferenceProperty
          Microsoft.Practices.EnterpriseLibrary.Configuration.Design.ViewModel.BlockSpecifics.CacheManagerBackingStoreProperty
          Microsoft.Practices.EnterpriseLibrary.Configuration.Design.ViewModel.BlockSpecifics.ConnectionStringSettingsDefaultDatabaseElementProperty
          Microsoft.Practices.EnterpriseLibrary.Configuration.Design.ViewModel.BlockSpecifics.RedirectedSectionSourceProperty
          Microsoft.Practices.EnterpriseLibrary.Configuration.Design.ViewModel.CollectionEditorContainedElementReferenceProperty

See Also

ElementReferenceProperty Members

Microsoft.Practices.EnterpriseLibrary.Configuration.Design.ViewModel Namespace