Delen via


Headers.TryGetValue(String, String) Method

Definition

Tries to get the value for a particular header.

public virtual bool TryGetValue (string headerName, out string value);
abstract member TryGetValue : string * string -> bool
override this.TryGetValue : string * string -> bool
Public Overridable Function TryGetValue (headerName As String, ByRef value As String) As Boolean

Parameters

headerName
String

Header name.

value
String

Header value.

Returns

True or false if the header name existed in the header collection.

Applies to