共用方式為


HeaderPropagationEntry 建構函式

定義

使用提供的 inboundHeaderNamecapturedHeaderNamevalueFilter 建立新的 HeaderPropagationEntry

public:
 HeaderPropagationEntry(System::String ^ inboundHeaderName, System::String ^ capturedHeaderName, Func<Microsoft::AspNetCore::HeaderPropagation::HeaderPropagationContext, Microsoft::Extensions::Primitives::StringValues> ^ valueFilter);
public HeaderPropagationEntry (string inboundHeaderName, string capturedHeaderName, Func<Microsoft.AspNetCore.HeaderPropagation.HeaderPropagationContext,Microsoft.Extensions.Primitives.StringValues> valueFilter);
public HeaderPropagationEntry (string inboundHeaderName, string capturedHeaderName, Func<Microsoft.AspNetCore.HeaderPropagation.HeaderPropagationContext,Microsoft.Extensions.Primitives.StringValues>? valueFilter);
new Microsoft.AspNetCore.HeaderPropagation.HeaderPropagationEntry : string * string * Func<Microsoft.AspNetCore.HeaderPropagation.HeaderPropagationContext, Microsoft.Extensions.Primitives.StringValues> -> Microsoft.AspNetCore.HeaderPropagation.HeaderPropagationEntry
Public Sub New (inboundHeaderName As String, capturedHeaderName As String, valueFilter As Func(Of HeaderPropagationContext, StringValues))

參數

inboundHeaderName
String

要擷 HeaderPropagationMiddleware 取之標頭的名稱。

capturedHeaderName
String

要加入 HeaderPropagationMessageHandler 之標頭的名稱。

valueFilter
Func<HeaderPropagationContext,StringValues>

可用來轉換標頭值的篩選委派。 可能是 Null。

適用於