次の方法で共有


OutputFormatterWriteContext コンストラクター

定義

新しい OutputFormatterWriteContext を作成します。

public:
 OutputFormatterWriteContext(Microsoft::AspNetCore::Http::HttpContext ^ httpContext, Func<System::IO::Stream ^, System::Text::Encoding ^, System::IO::TextWriter ^> ^ writerFactory, Type ^ objectType, System::Object ^ object);
public OutputFormatterWriteContext (Microsoft.AspNetCore.Http.HttpContext httpContext, Func<System.IO.Stream,System.Text.Encoding,System.IO.TextWriter> writerFactory, Type objectType, object object);
public OutputFormatterWriteContext (Microsoft.AspNetCore.Http.HttpContext httpContext, Func<System.IO.Stream,System.Text.Encoding,System.IO.TextWriter> writerFactory, Type? objectType, object? object);
new Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext : Microsoft.AspNetCore.Http.HttpContext * Func<System.IO.Stream, System.Text.Encoding, System.IO.TextWriter> * Type * obj -> Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext
Public Sub New (httpContext As HttpContext, writerFactory As Func(Of Stream, Encoding, TextWriter), objectType As Type, object As Object)

パラメーター

httpContext
HttpContext

現在の要求に関する HttpContext

writerFactory
Func<Stream,Encoding,TextWriter>

応答を書き込むための を TextWriter 作成するために使用されるデリゲート。

objectType
Type

Type応答に書き込むオブジェクトの 。

object
Object

応答に書き込むオブジェクト。

適用対象