IElementVisitorFilter.ShouldVisitRelationship Method
Called to ask the filter if a particular relationship from a source element should be included in the traversal
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)
Syntax
'Declaration
Function ShouldVisitRelationship ( _
walker As ElementWalker, _
sourceElement As ModelElement, _
sourceRoleInfo As DomainRoleInfo, _
domainRelationshipInfo As DomainRelationshipInfo, _
targetRelationship As ElementLink _
) As VisitorFilterResult
VisitorFilterResult ShouldVisitRelationship(
ElementWalker walker,
ModelElement sourceElement,
DomainRoleInfo sourceRoleInfo,
DomainRelationshipInfo domainRelationshipInfo,
ElementLink targetRelationship
)
VisitorFilterResult ShouldVisitRelationship(
ElementWalker^ walker,
ModelElement^ sourceElement,
DomainRoleInfo^ sourceRoleInfo,
DomainRelationshipInfo^ domainRelationshipInfo,
ElementLink^ targetRelationship
)
abstract ShouldVisitRelationship :
walker:ElementWalker *
sourceElement:ModelElement *
sourceRoleInfo:DomainRoleInfo *
domainRelationshipInfo:DomainRelationshipInfo *
targetRelationship:ElementLink -> VisitorFilterResult
function ShouldVisitRelationship(
walker : ElementWalker,
sourceElement : ModelElement,
sourceRoleInfo : DomainRoleInfo,
domainRelationshipInfo : DomainRelationshipInfo,
targetRelationship : ElementLink
) : VisitorFilterResult
Parameters
walker
Type: Microsoft.VisualStudio.Modeling.ElementWalkerthe walker that is currently traversing the model
sourceElement
Type: Microsoft.VisualStudio.Modeling.ModelElementModel Element playing the source role
sourceRoleInfo
Type: Microsoft.VisualStudio.Modeling.DomainRoleInfoDomainRoleInfo of the role that the source element is playing in the relationship
domainRelationshipInfo
Type: Microsoft.VisualStudio.Modeling.DomainRelationshipInfoDomainRelationshipInfo for the ElementLink in question
targetRelationship
Type: Microsoft.VisualStudio.Modeling.ElementLinkRelationship in question
Return Value
Type: Microsoft.VisualStudio.Modeling.VisitorFilterResult
Yes if the relationship should be traversed
.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.