共用方式為


HeaderSetup<THeader> 建構函式

定義

多載

HeaderSetup<THeader>(String, HeaderParser<THeader>, Boolean)

初始化 HeaderSetup<THeader> 類別的新執行個體。

HeaderSetup<THeader>(String, Type, Boolean)

初始化 HeaderSetup<THeader> 類別的新執行個體。

HeaderSetup<THeader>(String, HeaderParser<THeader>, Boolean)

來源:
HeaderSetup.cs

初始化 HeaderSetup<THeader> 類別的新執行個體。

public HeaderSetup (string headerName, Microsoft.AspNetCore.HeaderParsing.HeaderParser<THeader> instance, bool cacheable = false);
new Microsoft.AspNetCore.HeaderParsing.HeaderSetup<'Header> : string * Microsoft.AspNetCore.HeaderParsing.HeaderParser<'Header> * bool -> Microsoft.AspNetCore.HeaderParsing.HeaderSetup<'Header>
Public Sub New (headerName As String, instance As HeaderParser(Of THeader), Optional cacheable As Boolean = false)

參數

headerName
String

標頭的名稱。

instance
HeaderParser<THeader>

剖析標頭值的剖析器。

cacheable
Boolean

指出是否可以快取標頭的值。

適用於

HeaderSetup<THeader>(String, Type, Boolean)

來源:
HeaderSetup.cs

初始化 HeaderSetup<THeader> 類別的新執行個體。

public HeaderSetup (string headerName, Type parserType, bool cacheable = false);
new Microsoft.AspNetCore.HeaderParsing.HeaderSetup<'Header> : string * Type * bool -> Microsoft.AspNetCore.HeaderParsing.HeaderSetup<'Header>
Public Sub New (headerName As String, parserType As Type, Optional cacheable As Boolean = false)

參數

headerName
String

標頭的名稱。

parserType
Type

要剖析標頭值的剖析器類型。

cacheable
Boolean

指出是否可以快取標頭的值。

適用於