Condividi tramite


AncestorVisitorFilter.ShouldVisitRolePlayer Method

Checks to see whether a role player should be visited during a traversal.

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

Syntax

'Dichiarazione
Public Overridable Function ShouldVisitRolePlayer ( _
    walker As ElementWalker, _
    sourceElement As ModelElement, _
    elementLink As ElementLink, _
    targetDomainRole As DomainRoleInfo, _
    targetRolePlayer As ModelElement _
) As VisitorFilterResult
public virtual 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
)
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 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)

.NET Framework Security

See Also

Reference

AncestorVisitorFilter Class

Microsoft.VisualStudio.Modeling Namespace