IOptionsContextReceiver.Receive<T>(String, T) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.