Share via


IContextAccessor.AddObject(String, Object) Method

Definition

Adds an element with the specified key and value.

public:
 void AddObject(System::String ^ key, System::Object ^ value);
public void AddObject (string key, object value);
abstract member AddObject : string * obj -> unit
Public Sub AddObject (key As String, value As Object)

Parameters

key
String

A string that represents the key of the element to add.

value
Object

An object value to add.

Applies to