DependencyInjectionMethodParameterBinding 构造函数

定义

重载

DependencyInjectionMethodParameterBinding(Type, Type, MethodInfo, IPropertyBase)

为给定服务类型的给定方法创建一个新 DependencyInjectionParameterBinding 实例。

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

为给定服务类型的给定方法创建一个新 DependencyInjectionParameterBinding 实例。

DependencyInjectionMethodParameterBinding(Type, Type, MethodInfo, IPropertyBase)

Source:
DependencyInjectionMethodParameterBinding.cs
Source:
DependencyInjectionMethodParameterBinding.cs
Source:
DependencyInjectionMethodParameterBinding.cs

为给定服务类型的给定方法创建一个新 DependencyInjectionParameterBinding 实例。

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)

参数

parameterType
Type

参数 CLR 类型。

serviceType
Type

从依赖项注入解析的服务 CLR 类型

method
MethodInfo

要绑定到的服务的方法。

serviceProperty
IPropertyBase

关联的 IServiceProperty或 null。

适用于

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

Source:
DependencyInjectionMethodParameterBinding.cs
Source:
DependencyInjectionMethodParameterBinding.cs
Source:
DependencyInjectionMethodParameterBinding.cs
Source:
DependencyInjectionMethodParameterBinding.cs

为给定服务类型的给定方法创建一个新 DependencyInjectionParameterBinding 实例。

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

参数

parameterType
Type

参数 CLR 类型。

serviceType
Type

从依赖项注入解析的服务 CLR 类型

method
MethodInfo

要绑定到的服务的方法。

serviceProperties
IPropertyBase[]

关联的 IServiceProperty 对象或 null

适用于