Udostępnij za pośrednictwem


IOptionsContextReceiver.Receive<T>(String, T) Method

Definition

Adds a key-value pair to the context.

public:
generic <typename T>
 void Receive(System::String ^ key, T value);
public void Receive<T> (string key, T value);
abstract member Receive : string * 'T -> unit
Public Sub Receive(Of T) (key As String, value As T)

Type Parameters

T

The type of the data.

Parameters

key
String

The name of the data.

value
T

The data used to determine how to populate contextual options.

Applies to