NameValueHeaderValue.Find Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Find(IList<NameValueHeaderValue>, StringSegment) |
Finds a NameValueHeaderValue with the specified |
Find(IList<NameValueHeaderValue>, String) |
Find(IList<NameValueHeaderValue>, StringSegment)
- Source:
- NameValueHeaderValue.cs
- Source:
- NameValueHeaderValue.cs
- Source:
- NameValueHeaderValue.cs
Finds a NameValueHeaderValue with the specified name
.
public:
static Microsoft::Net::Http::Headers::NameValueHeaderValue ^ Find(System::Collections::Generic::IList<Microsoft::Net::Http::Headers::NameValueHeaderValue ^> ^ values, Microsoft::Extensions::Primitives::StringSegment name);
public static Microsoft.Net.Http.Headers.NameValueHeaderValue Find (System.Collections.Generic.IList<Microsoft.Net.Http.Headers.NameValueHeaderValue> values, Microsoft.Extensions.Primitives.StringSegment name);
public static Microsoft.Net.Http.Headers.NameValueHeaderValue? Find (System.Collections.Generic.IList<Microsoft.Net.Http.Headers.NameValueHeaderValue>? values, Microsoft.Extensions.Primitives.StringSegment name);
static member Find : System.Collections.Generic.IList<Microsoft.Net.Http.Headers.NameValueHeaderValue> * Microsoft.Extensions.Primitives.StringSegment -> Microsoft.Net.Http.Headers.NameValueHeaderValue
Public Shared Function Find (values As IList(Of NameValueHeaderValue), name As StringSegment) As NameValueHeaderValue
Parameters
- values
- IList<NameValueHeaderValue>
The collection to search.
- name
- StringSegment
The name to find.
Returns
The NameValueHeaderValue if found, otherwise null
.
Applies to
Find(IList<NameValueHeaderValue>, String)
public:
static Microsoft::Net::Http::Headers::NameValueHeaderValue ^ Find(System::Collections::Generic::IList<Microsoft::Net::Http::Headers::NameValueHeaderValue ^> ^ values, System::String ^ name);
public static Microsoft.Net.Http.Headers.NameValueHeaderValue Find (System.Collections.Generic.IList<Microsoft.Net.Http.Headers.NameValueHeaderValue> values, string name);
static member Find : System.Collections.Generic.IList<Microsoft.Net.Http.Headers.NameValueHeaderValue> * string -> Microsoft.Net.Http.Headers.NameValueHeaderValue
Public Shared Function Find (values As IList(Of NameValueHeaderValue), name As String) As NameValueHeaderValue
Parameters
- values
- IList<NameValueHeaderValue>
- name
- String