ClosureContextHelper.SetContextData Method (ElementGroup, Object, Object)
Sets the data in the walker's context object for a particular key
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'Declaration
Public Shared Sub SetContextData ( _
elementGroup As ElementGroup, _
key As Object, _
value As Object _
)
public static void SetContextData(
ElementGroup elementGroup,
Object key,
Object value
)
public:
static void SetContextData(
ElementGroup^ elementGroup,
Object^ key,
Object^ value
)
static member SetContextData :
elementGroup:ElementGroup *
key:Object *
value:Object -> unit
public static function SetContextData(
elementGroup : ElementGroup,
key : Object,
value : Object
)
Parameters
- elementGroup
Type: Microsoft.VisualStudio.Modeling.ElementGroup
the elementGroup that will hold the context data
- key
Type: System.Object
the key to set
- value
Type: System.Object
the value to set
.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.