Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Checks to see 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 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
- walker 
 Type: Microsoft.VisualStudio.Modeling.ElementWalker- The walker traversing the model. 
- sourceElement 
 Type: Microsoft.VisualStudio.Modeling.ModelElement- The element that is the source role player. 
- elementLink 
 Type: Microsoft.VisualStudio.Modeling.ElementLink- The link. 
- targetDomainRole 
 Type: Microsoft.VisualStudio.Modeling.DomainRoleInfo- The metadata for the target role. 
- targetRolePlayer 
 Type: Microsoft.VisualStudio.Modeling.ModelElement- The element that is the target role player. 
Return Value
Type: Microsoft.VisualStudio.Modeling.VisitorFilterResult
The VisitorFilterResult, which indicates whether an element should be visited.
Implements
.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.