Returns an IElementVisitorFilter that corresponds to the particular closure type.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)
Syntax
'宣言
Public Overridable Function GetClosureFilter ( _
type As ClosureType, _
rootElements As ICollection(Of ModelElement) _
) As IElementVisitorFilter
'使用
Dim instance As DomainModel
Dim type As ClosureType
Dim rootElements As ICollection(Of ModelElement)
Dim returnValue As IElementVisitorFilter
returnValue = instance.GetClosureFilter(type, _
rootElements)
public virtual IElementVisitorFilter GetClosureFilter(
ClosureType type,
ICollection<ModelElement> rootElements
)
public:
virtual IElementVisitorFilter^ GetClosureFilter(
ClosureType type,
ICollection<ModelElement^>^ rootElements
)
public function GetClosureFilter(
type : ClosureType,
rootElements : ICollection<ModelElement>
) : IElementVisitorFilter
Parameters
type
Type: Microsoft.VisualStudio.Modeling.ClosureTypeA closure type.
rootElements
Type: System.Collections.Generic.ICollection<ModelElement>A collection of root elements.
Return Value
Type: Microsoft.VisualStudio.Modeling.IElementVisitorFilter
An IElementVisitorFilter object.
Permissions
- 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.
See Also
Concepts
Domain Model in the Generated API