IGraphContext::SetValue<T> Method (String^, T)

 

Adds a new value to the context's property bag.

This can be used to pass extra information to providers.

Namespace:   Microsoft.VisualStudio.GraphModel
Assembly:  Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)

generic<typename T>
void SetValue(
	String^ name,
	T value
)

Parameters

name
Type: System::String^

The key for the value.

value
Type: T

The actual object value.

Type Parameters

T

The generic type of the value being set.

Return to top
Show: