Share via


ClosureContextHelper Class

Provides methods to add and retrieve closure context information to and from a particular element walker context.

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.Modeling.ClosureContextHelper

Namespace:  Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.11.0.dll)

Syntax

'Declaration
Public NotInheritable Class ClosureContextHelper
public sealed class ClosureContextHelper
public ref class ClosureContextHelper sealed
[<Sealed>]
type ClosureContextHelper =  class end
public final class ClosureContextHelper

The ClosureContextHelper type exposes the following members.

Constructors

  Name Description
Public method ClosureContextHelper(ElementGroup) Constructor that binds to an element group
Public method ClosureContextHelper(ElementWalker) Constructor that binds to an ElementWalker

Top

Properties

  Name Description
Public property ClosureContext Get all the Context object from the walker

Top

Methods

  Name Description
Public method AddClosureElementOperation(ClosureElementOperation) Add an element closure element operation to the associated context
Public methodStatic member AddClosureElementOperation(ElementGroup, ClosureElementOperation) Add an element closure element operation to the group's context
Public methodStatic member AddClosureElementOperation(ElementWalker, ClosureElementOperation) Add an element closure element operation to the walker's context
Public method AddContextListData(Object, Object) Adds the data to the list in the walker's context object for a particular key. This will create the list if it does not exist.
Public methodStatic member AddContextListData(ElementGroup, Object, Object) Adds the data to the list in the walker's context object for a particular key. This will create the list if it does not exist.
Public methodStatic member AddContextListData(ElementWalker, Object, Object) Adds the data to the list in the walker's context object for a particular key. This will create the list if it doesn't exist.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodStatic member GetClosureContext(ElementGroup) Get the closure context from the element walker.
Public methodStatic member GetClosureContext(ElementWalker) Get the closure context from the element walker.
Public method GetContextData(Object) Get the ContextData for a single key
Public methodStatic member GetContextData(ElementGroup, Object) Get the ContextData for a single key
Public methodStatic member GetContextData(ElementWalker, Object) Get the ContextData for a single key
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Resolve Called to resolve the operation
Public method SetContextData(Object, Object) Sets the data in the walker's context object for a particular key
Public methodStatic member SetContextData(ElementGroup, Object, Object) Sets the data in the walker's context object for a particular key
Public methodStatic member SetContextData(ElementWalker, Object, Object) Sets the data in the walker's context object for a particular key
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.Modeling Namespace