HeaderSetup<THeader> 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
HeaderSetup<THeader>(String, HeaderParser<THeader>, Boolean) |
初始化 HeaderSetup<THeader> 類別的新執行個體。 |
HeaderSetup<THeader>(String, Type, Boolean) |
初始化 HeaderSetup<THeader> 類別的新執行個體。 |
HeaderSetup<THeader>(String, HeaderParser<THeader>, Boolean)
初始化 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<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
指出是否可以快取標頭的值。