PostSharp 6.10 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Correlation Namespace / Correlation­Request Structure / Correlation­Request Methods / Correlation­Request.​Try­Get­Header Method

CorrelationRequest.TryGetHeader Method

Gets a request header.

Namespace:  PostSharp.Patterns.Diagnostics.Correlation
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.10.10.0 (6.10.10.0)
Syntax
C#
public bool TryGetHeader(
	string name,
	out IEnumerable<string> values
)

Parameters

name
Type: System.String
Header name.
values
Type: System.Collections.Generic.IEnumerable<String>
At output, set of values for the header.

Return Value

Type: Boolean
true if there is at least one header of this name, otherwise false.
See Also