Checks to see whether a role player should be visited during a traversal.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)
Syntax
'宣言
Public Overridable Function ShouldVisitRolePlayer ( _
walker As ElementWalker, _
sourceElement As ModelElement, _
elementLink As ElementLink, _
targetDomainRole As DomainRoleInfo, _
targetRolePlayer As ModelElement _
) As VisitorFilterResult
'使用
Dim instance As AncestorVisitorFilter
Dim walker As ElementWalker
Dim sourceElement As ModelElement
Dim elementLink As ElementLink
Dim targetDomainRole As DomainRoleInfo
Dim targetRolePlayer As ModelElement
Dim returnValue As VisitorFilterResult
returnValue = instance.ShouldVisitRolePlayer(walker, _
sourceElement, elementLink, targetDomainRole, _
targetRolePlayer)
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
)
public function ShouldVisitRolePlayer(
walker : ElementWalker,
sourceElement : ModelElement,
elementLink : ElementLink,
targetDomainRole : DomainRoleInfo,
targetRolePlayer : ModelElement
) : VisitorFilterResult
Parameters
- walker
Type: Microsoft.VisualStudio.Modeling.ElementWalker
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
Permissions
- 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.