Share via


DependencyInjectionMethodParameterBinding Constructors

Definition

Overloads

DependencyInjectionMethodParameterBinding(Type, Type, MethodInfo, IPropertyBase)

Creates a new DependencyInjectionParameterBinding instance for the given method of the given service type.

DependencyInjectionMethodParameterBinding(Type, Type, MethodInfo, IPropertyBase[])

Creates a new DependencyInjectionParameterBinding instance for the given method of the given service type.

DependencyInjectionMethodParameterBinding(Type, Type, MethodInfo, IPropertyBase)

Creates a new DependencyInjectionParameterBinding instance for the given method of the given service type.

public DependencyInjectionMethodParameterBinding (Type parameterType, Type serviceType, System.Reflection.MethodInfo method, Microsoft.EntityFrameworkCore.Metadata.IPropertyBase serviceProperty = default);
new Microsoft.EntityFrameworkCore.Metadata.DependencyInjectionMethodParameterBinding : Type * Type * System.Reflection.MethodInfo * Microsoft.EntityFrameworkCore.Metadata.IPropertyBase -> Microsoft.EntityFrameworkCore.Metadata.DependencyInjectionMethodParameterBinding
Public Sub New (parameterType As Type, serviceType As Type, method As MethodInfo, Optional serviceProperty As IPropertyBase = Nothing)

Parameters

parameterType
Type

The parameter CLR type.

serviceType
Type

The service CLR types, as resolved from dependency injection

method
MethodInfo

The method of the service to bind to.

serviceProperty
IPropertyBase

The associated IServiceProperty, or null.

Applies to

DependencyInjectionMethodParameterBinding(Type, Type, MethodInfo, IPropertyBase[])

Creates a new DependencyInjectionParameterBinding instance for the given method of the given service type.

public DependencyInjectionMethodParameterBinding (Type parameterType, Type serviceType, System.Reflection.MethodInfo method, params Microsoft.EntityFrameworkCore.Metadata.IPropertyBase[]? serviceProperties);
new Microsoft.EntityFrameworkCore.Metadata.DependencyInjectionMethodParameterBinding : Type * Type * System.Reflection.MethodInfo * Microsoft.EntityFrameworkCore.Metadata.IPropertyBase[] -> Microsoft.EntityFrameworkCore.Metadata.DependencyInjectionMethodParameterBinding
Public Sub New (parameterType As Type, serviceType As Type, method As MethodInfo, ParamArray serviceProperties As IPropertyBase())

Parameters

parameterType
Type

The parameter CLR type.

serviceType
Type

The service CLR types, as resolved from dependency injection

method
MethodInfo

The method of the service to bind to.

serviceProperties
IPropertyBase[]

The associated IServiceProperty objects, or null.

Applies to