Table of Contents

Method TryGetLastValue

Namespace
NATS.Client.Core
Assembly
NATS.Client.Core.dll

TryGetLastValue(string, out string?)

Retrieves a last value from the dictionary.

public bool TryGetLastValue(string key, out string? value)

Parameters

key string

The header name.

value string

The value.

Returns

bool

true if the NatsHeaders contains the key; otherwise, false.