共用方式為


HttpRequestMessageExtensions.GetHeaderValueOrDefault Method

Definition

public static string GetHeaderValueOrDefault (this System.Net.Http.HttpRequestMessage request, string headerName);
static member GetHeaderValueOrDefault : System.Net.Http.HttpRequestMessage * string -> string
<Extension()>
Public Function GetHeaderValueOrDefault (request As HttpRequestMessage, headerName As String) As String

Parameters

headerName
String

Returns

Applies to