IGraphContext.SetValue<T> Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
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)
Syntax
'Declaration
Sub SetValue(Of T) ( _
name As String, _
value As T _
)
void SetValue<T>(
string name,
T value
)
generic<typename T>
void SetValue(
String^ name,
T value
)
abstract SetValue :
name:string *
value:'T -> unit
JScript does not support generic types or methods.
Type Parameters
- T
The generic type of the value being set.
Parameters
name
Type: System.StringThe key for the value.
value
Type: TThe actual object value.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.