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
walker
Type: Microsoft.VisualStudio.Modeling.ElementWalkerThe walker traversing the model.
sourceElement
Type: Microsoft.VisualStudio.Modeling.ModelElementThe element that is the source role player.
elementLink
Type: Microsoft.VisualStudio.Modeling.ElementLinkThe link.
targetDomainRole
Type: Microsoft.VisualStudio.Modeling.DomainRoleInfoThe metadata for the target role.
targetRolePlayer
Type: Microsoft.VisualStudio.Modeling.ModelElementThe 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
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
- 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.