Delen via


ChainingElementVisitorFilter.ShouldVisitRolePlayer Method

Verifies whether a role player should be visited during a traversal.

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

Syntax

'Declaration
Public Function ShouldVisitRolePlayer ( _
    walker As ElementWalker, _
    sourceElement As ModelElement, _
    elementLink As ElementLink, _
    targetDomainRole As DomainRoleInfo, _
    targetRolePlayer As ModelElement _
) As VisitorFilterResult
public VisitorFilterResult ShouldVisitRolePlayer(
    ElementWalker walker,
    ModelElement sourceElement,
    ElementLink elementLink,
    DomainRoleInfo targetDomainRole,
    ModelElement targetRolePlayer
)
public:
virtual VisitorFilterResult ShouldVisitRolePlayer(
    ElementWalker^ walker, 
    ModelElement^ sourceElement, 
    ElementLink^ elementLink, 
    DomainRoleInfo^ targetDomainRole, 
    ModelElement^ targetRolePlayer
) sealed
abstract ShouldVisitRolePlayer : 
        walker:ElementWalker * 
        sourceElement:ModelElement * 
        elementLink:ElementLink * 
        targetDomainRole:DomainRoleInfo * 
        targetRolePlayer:ModelElement -> VisitorFilterResult  
override ShouldVisitRolePlayer : 
        walker:ElementWalker * 
        sourceElement:ModelElement * 
        elementLink:ElementLink * 
        targetDomainRole:DomainRoleInfo * 
        targetRolePlayer:ModelElement -> VisitorFilterResult
public final function ShouldVisitRolePlayer(
    walker : ElementWalker, 
    sourceElement : ModelElement, 
    elementLink : ElementLink, 
    targetDomainRole : DomainRoleInfo, 
    targetRolePlayer : ModelElement
) : VisitorFilterResult

Parameters

Return Value

Type: Microsoft.VisualStudio.Modeling.VisitorFilterResult
The VisitorFilterResult, which indicates whether an element should be visited.

Implements

IElementVisitorFilter.ShouldVisitRolePlayer(ElementWalker, ModelElement, ElementLink, DomainRoleInfo, ModelElement)

Remarks

Walk the chain asking each filter in turn until one returns that it cares. Generally this means that filters shoudl be added in ascending order of specificity.

.NET Framework Security

See Also

Reference

ChainingElementVisitorFilter Class

Microsoft.VisualStudio.Modeling Namespace