Partager via


DependencyInjectionMethodParameterBinding Constructeurs

Définition

Surcharges

DependencyInjectionMethodParameterBinding(Type, Type, MethodInfo, IPropertyBase)

Crée une DependencyInjectionParameterBinding instance pour la méthode donnée du type de service donné.

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

Crée une DependencyInjectionParameterBinding instance pour la méthode donnée du type de service donné.

DependencyInjectionMethodParameterBinding(Type, Type, MethodInfo, IPropertyBase)

Crée une DependencyInjectionParameterBinding instance pour la méthode donnée du type de service donné.

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)

Paramètres

parameterType
Type

Type CLR du paramètre.

serviceType
Type

Types CLR de service, tels qu’ils ont été résolus à partir de l’injection de dépendances

method
MethodInfo

Méthode du service à lier.

serviceProperty
IPropertyBase

associé ou IServicePropertynull.

S’applique à

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

Crée une DependencyInjectionParameterBinding instance pour la méthode donnée du type de service donné.

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())

Paramètres

parameterType
Type

Type CLR du paramètre.

serviceType
Type

Types CLR de service, tels qu’ils ont été résolus à partir de l’injection de dépendances

method
MethodInfo

Méthode du service à lier.

serviceProperties
IPropertyBase[]

Les objets associés IServiceProperty , ou null.

S’applique à