Delen via


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

  • value
    Type: T

    The actual object value.

.NET Framework Security

See Also

Reference

IGraphContext Interface

Microsoft.VisualStudio.GraphModel Namespace