Note: This API is now obsolete.
This interface method has been removed. Please call SelectProperty(PropertyInfo) instead.
Namespace: SimpleInjector.Advanced
Assembly: SimpleInjector (in SimpleInjector.dll) Version: 4.10.2
Syntax
[ObsoleteAttribute("This interface method has been removed. Please call SelectProperty(PropertyInfo) instead. This method will be removed in version 5.0.", true)] [EditorBrowsableAttribute(EditorBrowsableState.Never)] public static bool SelectProperty( this IPropertySelectionBehavior behavior, Type serviceType, PropertyInfo propertyInfo )
Parameters
- behavior
- Type: SimpleInjector.AdvancedIPropertySelectionBehavior
The behavior. - serviceType
- Type: SystemType
Type of the abstraction that is requested. - propertyInfo
- Type: System.ReflectionPropertyInfo
The property to check.
Return Value
Type: BooleanTrue when the property should be injected.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IPropertySelectionBehavior. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).See Also