PostSharp 6.9 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Correlation Namespace / ICorrelation­Request­Adapter Interface / ICorrelation­Request­Adapter Methods / ICorrelation­Request­Adapter.​Try­Get­Header Method

ICorrelationRequestAdapter.TryGetHeader Method

Gets a request header.

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

Parameters

request
Type: System.Object
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