共用方式為


HeaderPropagationContext(HttpContext, String, StringValues) 建構函式

定義

使用提供的 httpContextheaderNameheaderValue ,初始化 的新實例 HeaderPropagationContext

public:
 HeaderPropagationContext(Microsoft::AspNetCore::Http::HttpContext ^ httpContext, System::String ^ headerName, Microsoft::Extensions::Primitives::StringValues headerValue);
public HeaderPropagationContext (Microsoft.AspNetCore.Http.HttpContext httpContext, string headerName, Microsoft.Extensions.Primitives.StringValues headerValue);
new Microsoft.AspNetCore.HeaderPropagation.HeaderPropagationContext : Microsoft.AspNetCore.Http.HttpContext * string * Microsoft.Extensions.Primitives.StringValues -> Microsoft.AspNetCore.HeaderPropagation.HeaderPropagationContext
Public Sub New (httpContext As HttpContext, headerName As String, headerValue As StringValues)

參數

httpContext
HttpContext

HttpContext 目前要求相關聯的 。

headerName
String

標頭名稱。

headerValue
StringValues

目前要求中存在的標頭值。

適用於