ChainingElementVisitorFilter.ShouldVisitRolePlayer Method
Verifies 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
‘선언
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.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
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.