Returns an IElementVisitor that corresponds to the particular closure type.
Namespace:  Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
声明
Public Overridable Function GetClosureVisitor ( _
    type As ClosureType, _
    rootElements As ICollection(Of ModelElement) _
) As IElementVisitor
public virtual IElementVisitor GetClosureVisitor(
    ClosureType type,
    ICollection<ModelElement> rootElements
)
public:
virtual IElementVisitor^ GetClosureVisitor(
    ClosureType type, 
    ICollection<ModelElement^>^ rootElements
)
abstract GetClosureVisitor : 
        type:ClosureType * 
        rootElements:ICollection<ModelElement> -> IElementVisitor 
override GetClosureVisitor : 
        type:ClosureType * 
        rootElements:ICollection<ModelElement> -> IElementVisitor 
public function GetClosureVisitor(
    type : ClosureType, 
    rootElements : ICollection<ModelElement>
) : IElementVisitor
Parameters
- type
 Type: Microsoft.VisualStudio.Modeling.ClosureType
 A closure type.
- rootElements
 Type: System.Collections.Generic.ICollection<ModelElement>
 A collection of root elements.
Return Value
Type: Microsoft.VisualStudio.Modeling.IElementVisitor
An IElementVisitor object.
.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.