Share via


IGraphContext.SetValue<T> Method

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: String

    The key for the value.

  • value
    Type: T

    The actual object value.

.NET Framework Security

See Also

Reference

IGraphContext Interface

Microsoft.VisualStudio.GraphModel Namespace