Partager via


CopyClosureFilter.ShouldVisitRolePlayer Method

Definition

Called to ask the filter if a particular role player should be Visited during traversal

public:
 virtual Microsoft::VisualStudio::Modeling::VisitorFilterResult ShouldVisitRolePlayer(Microsoft::VisualStudio::Modeling::ElementWalker ^ walker, Microsoft::VisualStudio::Modeling::ModelElement ^ sourceElement, Microsoft::VisualStudio::Modeling::ElementLink ^ elementLink, Microsoft::VisualStudio::Modeling::DomainRoleInfo ^ targetDomainRole, Microsoft::VisualStudio::Modeling::ModelElement ^ targetRolePlayer);
public virtual Microsoft.VisualStudio.Modeling.VisitorFilterResult ShouldVisitRolePlayer (Microsoft.VisualStudio.Modeling.ElementWalker walker, Microsoft.VisualStudio.Modeling.ModelElement sourceElement, Microsoft.VisualStudio.Modeling.ElementLink elementLink, Microsoft.VisualStudio.Modeling.DomainRoleInfo targetDomainRole, Microsoft.VisualStudio.Modeling.ModelElement targetRolePlayer);
abstract member ShouldVisitRolePlayer : Microsoft.VisualStudio.Modeling.ElementWalker * Microsoft.VisualStudio.Modeling.ModelElement * Microsoft.VisualStudio.Modeling.ElementLink * Microsoft.VisualStudio.Modeling.DomainRoleInfo * Microsoft.VisualStudio.Modeling.ModelElement -> Microsoft.VisualStudio.Modeling.VisitorFilterResult
override this.ShouldVisitRolePlayer : Microsoft.VisualStudio.Modeling.ElementWalker * Microsoft.VisualStudio.Modeling.ModelElement * Microsoft.VisualStudio.Modeling.ElementLink * Microsoft.VisualStudio.Modeling.DomainRoleInfo * Microsoft.VisualStudio.Modeling.ModelElement -> Microsoft.VisualStudio.Modeling.VisitorFilterResult
Public Overridable Function ShouldVisitRolePlayer (walker As ElementWalker, sourceElement As ModelElement, elementLink As ElementLink, targetDomainRole As DomainRoleInfo, targetRolePlayer As ModelElement) As VisitorFilterResult

Parameters

walker
ElementWalker

ElementWalker traversing the model

sourceElement
ModelElement

Model Element playing the source role

elementLink
ElementLink

Element Link that forms the relationship to the role player in question

targetDomainRole
DomainRoleInfo

DomainRoleInfo of the target role

targetRolePlayer
ModelElement

Model Element that plays the target role in the relationship

Returns

Implements

Applies to