Share via


SpecifiedPropertiesSelectorPolicy.AddPropertyAndValue Method

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

The latest Unity Application Block information can be found at the Unity Application Block site.

Add a property that will be par of the set returned when the SelectProperties(IBuilderContext) is called.

Namespace:  Microsoft.Practices.Unity.ObjectBuilder
Assembly:  Microsoft.Practices.Unity (in Microsoft.Practices.Unity.dll)

Syntax

'Declaration
Public Sub AddPropertyAndValue ( _
    property As PropertyInfo, _
    value As InjectionParameterValue _
)
public void AddPropertyAndValue(
    PropertyInfo property,
    InjectionParameterValue value
)
public:
void AddPropertyAndValue(
    PropertyInfo^ property, 
    InjectionParameterValue^ value
)
public function AddPropertyAndValue(
    property : PropertyInfo, 
    value : InjectionParameterValue
)

Parameters

See Also

SpecifiedPropertiesSelectorPolicy Class

Microsoft.Practices.Unity.ObjectBuilder Namespace