BodyModelBinder 构造函数

定义

重载

BodyModelBinder(IList<IInputFormatter>, IHttpRequestStreamReaderFactory)

创建一个新的 BodyModelBinder

BodyModelBinder(IList<IInputFormatter>, IHttpRequestStreamReaderFactory)

创建一个新的 BodyModelBinder

BodyModelBinder(IList<IInputFormatter>, IHttpRequestStreamReaderFactory, ILoggerFactory)

创建一个新的 BodyModelBinder

BodyModelBinder(IList<IInputFormatter>, IHttpRequestStreamReaderFactory, ILoggerFactory)

创建一个新的 BodyModelBinder

BodyModelBinder(IList<IInputFormatter>, IHttpRequestStreamReaderFactory, ILoggerFactory, MvcOptions)

创建一个新的 BodyModelBinder

BodyModelBinder(IList<IInputFormatter>, IHttpRequestStreamReaderFactory, ILoggerFactory, MvcOptions)

创建一个新的 BodyModelBinder

BodyModelBinder(IList<IInputFormatter>, IHttpRequestStreamReaderFactory)

Source:
BodyModelBinder.cs
Source:
BodyModelBinder.cs

创建一个新的 BodyModelBinder

public:
 BodyModelBinder(System::Collections::Generic::IList<Microsoft::AspNetCore::Mvc::Formatters::IInputFormatter ^> ^ formatters, Microsoft::AspNetCore::Mvc::Infrastructure::IHttpRequestStreamReaderFactory ^ readerFactory);
public BodyModelBinder (System.Collections.Generic.IList<Microsoft.AspNetCore.Mvc.Formatters.IInputFormatter> formatters, Microsoft.AspNetCore.Mvc.Infrastructure.IHttpRequestStreamReaderFactory readerFactory);
new Microsoft.AspNetCore.Mvc.ModelBinding.Binders.BodyModelBinder : System.Collections.Generic.IList<Microsoft.AspNetCore.Mvc.Formatters.IInputFormatter> * Microsoft.AspNetCore.Mvc.Infrastructure.IHttpRequestStreamReaderFactory -> Microsoft.AspNetCore.Mvc.ModelBinding.Binders.BodyModelBinder
Public Sub New (formatters As IList(Of IInputFormatter), readerFactory As IHttpRequestStreamReaderFactory)

参数

formatters
IList<IInputFormatter>

IInputFormatter 的列表。

readerFactory
IHttpRequestStreamReaderFactory

IHttpRequestStreamReaderFactory用于创建 TextReader 用于读取请求正文的实例。

适用于

BodyModelBinder(IList<IInputFormatter>, IHttpRequestStreamReaderFactory)

创建一个新的 BodyModelBinder

public:
 BodyModelBinder(System::Collections::Generic::IList<Microsoft::AspNetCore::Mvc::Formatters::IInputFormatter ^> ^ formatters, Microsoft::AspNetCore::Mvc::Internal::IHttpRequestStreamReaderFactory ^ readerFactory);
public BodyModelBinder (System.Collections.Generic.IList<Microsoft.AspNetCore.Mvc.Formatters.IInputFormatter> formatters, Microsoft.AspNetCore.Mvc.Internal.IHttpRequestStreamReaderFactory readerFactory);
new Microsoft.AspNetCore.Mvc.ModelBinding.Binders.BodyModelBinder : System.Collections.Generic.IList<Microsoft.AspNetCore.Mvc.Formatters.IInputFormatter> * Microsoft.AspNetCore.Mvc.Internal.IHttpRequestStreamReaderFactory -> Microsoft.AspNetCore.Mvc.ModelBinding.Binders.BodyModelBinder
Public Sub New (formatters As IList(Of IInputFormatter), readerFactory As IHttpRequestStreamReaderFactory)

参数

formatters
IList<IInputFormatter>

IInputFormatter 的列表。

readerFactory
Microsoft.AspNetCore.Mvc.Internal.IHttpRequestStreamReaderFactory

Microsoft.AspNetCore.Mvc.Internal.IHttpRequestStreamReaderFactory用于创建 TextReader 用于读取请求正文的实例。

适用于

BodyModelBinder(IList<IInputFormatter>, IHttpRequestStreamReaderFactory, ILoggerFactory)

Source:
BodyModelBinder.cs
Source:
BodyModelBinder.cs

创建一个新的 BodyModelBinder

public:
 BodyModelBinder(System::Collections::Generic::IList<Microsoft::AspNetCore::Mvc::Formatters::IInputFormatter ^> ^ formatters, Microsoft::AspNetCore::Mvc::Infrastructure::IHttpRequestStreamReaderFactory ^ readerFactory, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
public BodyModelBinder (System.Collections.Generic.IList<Microsoft.AspNetCore.Mvc.Formatters.IInputFormatter> formatters, Microsoft.AspNetCore.Mvc.Infrastructure.IHttpRequestStreamReaderFactory readerFactory, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
public BodyModelBinder (System.Collections.Generic.IList<Microsoft.AspNetCore.Mvc.Formatters.IInputFormatter> formatters, Microsoft.AspNetCore.Mvc.Infrastructure.IHttpRequestStreamReaderFactory readerFactory, Microsoft.Extensions.Logging.ILoggerFactory? loggerFactory);
new Microsoft.AspNetCore.Mvc.ModelBinding.Binders.BodyModelBinder : System.Collections.Generic.IList<Microsoft.AspNetCore.Mvc.Formatters.IInputFormatter> * Microsoft.AspNetCore.Mvc.Infrastructure.IHttpRequestStreamReaderFactory * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.Mvc.ModelBinding.Binders.BodyModelBinder
Public Sub New (formatters As IList(Of IInputFormatter), readerFactory As IHttpRequestStreamReaderFactory, loggerFactory As ILoggerFactory)

参数

formatters
IList<IInputFormatter>

IInputFormatter 的列表。

readerFactory
IHttpRequestStreamReaderFactory

IHttpRequestStreamReaderFactory用于创建 TextReader 用于读取请求正文的实例。

适用于

BodyModelBinder(IList<IInputFormatter>, IHttpRequestStreamReaderFactory, ILoggerFactory)

创建一个新的 BodyModelBinder

public:
 BodyModelBinder(System::Collections::Generic::IList<Microsoft::AspNetCore::Mvc::Formatters::IInputFormatter ^> ^ formatters, Microsoft::AspNetCore::Mvc::Internal::IHttpRequestStreamReaderFactory ^ readerFactory, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
public BodyModelBinder (System.Collections.Generic.IList<Microsoft.AspNetCore.Mvc.Formatters.IInputFormatter> formatters, Microsoft.AspNetCore.Mvc.Internal.IHttpRequestStreamReaderFactory readerFactory, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
new Microsoft.AspNetCore.Mvc.ModelBinding.Binders.BodyModelBinder : System.Collections.Generic.IList<Microsoft.AspNetCore.Mvc.Formatters.IInputFormatter> * Microsoft.AspNetCore.Mvc.Internal.IHttpRequestStreamReaderFactory * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.Mvc.ModelBinding.Binders.BodyModelBinder
Public Sub New (formatters As IList(Of IInputFormatter), readerFactory As IHttpRequestStreamReaderFactory, loggerFactory As ILoggerFactory)

参数

formatters
IList<IInputFormatter>

IInputFormatter 的列表。

readerFactory
Microsoft.AspNetCore.Mvc.Internal.IHttpRequestStreamReaderFactory

Microsoft.AspNetCore.Mvc.Internal.IHttpRequestStreamReaderFactory用于创建 TextReader 用于读取请求正文的实例。

适用于

BodyModelBinder(IList<IInputFormatter>, IHttpRequestStreamReaderFactory, ILoggerFactory, MvcOptions)

Source:
BodyModelBinder.cs
Source:
BodyModelBinder.cs

创建一个新的 BodyModelBinder

public:
 BodyModelBinder(System::Collections::Generic::IList<Microsoft::AspNetCore::Mvc::Formatters::IInputFormatter ^> ^ formatters, Microsoft::AspNetCore::Mvc::Infrastructure::IHttpRequestStreamReaderFactory ^ readerFactory, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory, Microsoft::AspNetCore::Mvc::MvcOptions ^ options);
public BodyModelBinder (System.Collections.Generic.IList<Microsoft.AspNetCore.Mvc.Formatters.IInputFormatter> formatters, Microsoft.AspNetCore.Mvc.Infrastructure.IHttpRequestStreamReaderFactory readerFactory, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.AspNetCore.Mvc.MvcOptions options);
public BodyModelBinder (System.Collections.Generic.IList<Microsoft.AspNetCore.Mvc.Formatters.IInputFormatter> formatters, Microsoft.AspNetCore.Mvc.Infrastructure.IHttpRequestStreamReaderFactory readerFactory, Microsoft.Extensions.Logging.ILoggerFactory? loggerFactory, Microsoft.AspNetCore.Mvc.MvcOptions? options);
new Microsoft.AspNetCore.Mvc.ModelBinding.Binders.BodyModelBinder : System.Collections.Generic.IList<Microsoft.AspNetCore.Mvc.Formatters.IInputFormatter> * Microsoft.AspNetCore.Mvc.Infrastructure.IHttpRequestStreamReaderFactory * Microsoft.Extensions.Logging.ILoggerFactory * Microsoft.AspNetCore.Mvc.MvcOptions -> Microsoft.AspNetCore.Mvc.ModelBinding.Binders.BodyModelBinder
Public Sub New (formatters As IList(Of IInputFormatter), readerFactory As IHttpRequestStreamReaderFactory, loggerFactory As ILoggerFactory, options As MvcOptions)

参数

formatters
IList<IInputFormatter>

IInputFormatter 的列表。

readerFactory
IHttpRequestStreamReaderFactory

IHttpRequestStreamReaderFactory用于创建 TextReader 用于读取请求正文的实例。

适用于

BodyModelBinder(IList<IInputFormatter>, IHttpRequestStreamReaderFactory, ILoggerFactory, MvcOptions)

创建一个新的 BodyModelBinder

public:
 BodyModelBinder(System::Collections::Generic::IList<Microsoft::AspNetCore::Mvc::Formatters::IInputFormatter ^> ^ formatters, Microsoft::AspNetCore::Mvc::Internal::IHttpRequestStreamReaderFactory ^ readerFactory, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory, Microsoft::AspNetCore::Mvc::MvcOptions ^ options);
public BodyModelBinder (System.Collections.Generic.IList<Microsoft.AspNetCore.Mvc.Formatters.IInputFormatter> formatters, Microsoft.AspNetCore.Mvc.Internal.IHttpRequestStreamReaderFactory readerFactory, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.AspNetCore.Mvc.MvcOptions options);
new Microsoft.AspNetCore.Mvc.ModelBinding.Binders.BodyModelBinder : System.Collections.Generic.IList<Microsoft.AspNetCore.Mvc.Formatters.IInputFormatter> * Microsoft.AspNetCore.Mvc.Internal.IHttpRequestStreamReaderFactory * Microsoft.Extensions.Logging.ILoggerFactory * Microsoft.AspNetCore.Mvc.MvcOptions -> Microsoft.AspNetCore.Mvc.ModelBinding.Binders.BodyModelBinder
Public Sub New (formatters As IList(Of IInputFormatter), readerFactory As IHttpRequestStreamReaderFactory, loggerFactory As ILoggerFactory, options As MvcOptions)

参数

formatters
IList<IInputFormatter>

IInputFormatter 的列表。

readerFactory
Microsoft.AspNetCore.Mvc.Internal.IHttpRequestStreamReaderFactory

Microsoft.AspNetCore.Mvc.Internal.IHttpRequestStreamReaderFactory用于创建 TextReader 用于读取请求正文的实例。

适用于