Table of Contents

Interface IMessageHeaders

Namespace
AnyProtocol.Abstraction
Assembly
AnyProtocol.Abstraction.dll

Defines operations for message headers.

public interface IMessageHeaders : IReadOnlyDictionary<string, string>, IReadOnlyCollection<KeyValuePair<string, string>>, IEnumerable<KeyValuePair<string, string>>, IEnumerable
Inherited Members
Extension Methods

Properties

this[string]

Indicates this[string].

string? this[string key] { get; set; }

Parameters

key string

Property Value

string

The this[string].

Methods

Remove(string)

Performs the remove operation.

bool Remove(string key)

Parameters

key string

The key that identifies the value.

Returns

bool

true when the operation succeeds; otherwise, false.

Set(string, string)

Performs the set operation.

void Set(string key, string value)

Parameters

key string

The key that identifies the value.

value string

The value to store.