Compartilhar via


IGraphContext.SetValue<T>(String, T) Method

Definition

Adds a new value to the context's property bag. This can be used to pass extra information to providers.

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

Type Parameters

T

The generic type of the value being set.

Parameters

name
String

The key for the value.

value
T

The actual object value.

Applies to