共用方式為


HttpRequestMessageExtensions.GetRequestPropertyOrDefault<TValue> Method

Definition

public static TValue GetRequestPropertyOrDefault<TValue> (this System.Net.Http.HttpRequestMessage request, string key);
static member GetRequestPropertyOrDefault : System.Net.Http.HttpRequestMessage * string -> 'Value
<Extension()>
Public Function GetRequestPropertyOrDefault(Of TValue) (request As HttpRequestMessage, key As String) As TValue

Type Parameters

TValue

Parameters

key
String

Returns

TValue

Applies to