ResponseHeaders.Get<T>(String) 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.
Gets the value of header with name
.
public:
generic <typename T>
T Get(System::String ^ name);
public T Get<T> (string name);
public T? Get<T> (string name);
member this.Get : string -> 'T
Public Function Get(Of T) (name As String) As T
Type Parameters
- T
The type of the header. The given type must have a static TryParse method.
Parameters
- name
- String
The name of the header to retrieve.
Returns
T
The value of the header.
Remarks
T
must contain a TryParse method with the signature public static bool TryParse(string, out T)
.
Applies to
Visszajelzés
https://aka.ms/ContentUserFeedback.
Hamarosan elérhető: 2024-ben fokozatosan kivezetjük a GitHub-problémákat a tartalom visszajelzési mechanizmusaként, és lecseréljük egy új visszajelzési rendszerre. További információ:Visszajelzés küldése és megtekintése a következőhöz: