ChainingElementVisitorFilter.ShouldVisitRelationship Method
Verifies whether a relationship 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
'Dichiarazione
Public Function ShouldVisitRelationship ( _
walker As ElementWalker, _
sourceElement As ModelElement, _
sourceRoleInfo As DomainRoleInfo, _
domainRelationshipInfo As DomainRelationshipInfo, _
targetRelationship As ElementLink _
) As VisitorFilterResult
public VisitorFilterResult ShouldVisitRelationship(
ElementWalker walker,
ModelElement sourceElement,
DomainRoleInfo sourceRoleInfo,
DomainRelationshipInfo domainRelationshipInfo,
ElementLink targetRelationship
)
public:
virtual VisitorFilterResult ShouldVisitRelationship(
ElementWalker^ walker,
ModelElement^ sourceElement,
DomainRoleInfo^ sourceRoleInfo,
DomainRelationshipInfo^ domainRelationshipInfo,
ElementLink^ targetRelationship
) sealed
abstract ShouldVisitRelationship :
walker:ElementWalker *
sourceElement:ModelElement *
sourceRoleInfo:DomainRoleInfo *
domainRelationshipInfo:DomainRelationshipInfo *
targetRelationship:ElementLink -> VisitorFilterResult
override ShouldVisitRelationship :
walker:ElementWalker *
sourceElement:ModelElement *
sourceRoleInfo:DomainRoleInfo *
domainRelationshipInfo:DomainRelationshipInfo *
targetRelationship:ElementLink -> VisitorFilterResult
public final function ShouldVisitRelationship(
walker : ElementWalker,
sourceElement : ModelElement,
sourceRoleInfo : DomainRoleInfo,
domainRelationshipInfo : DomainRelationshipInfo,
targetRelationship : ElementLink
) : 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 in the relationship.
- sourceRoleInfo
Type: Microsoft.VisualStudio.Modeling.DomainRoleInfo
The metadata for the source role.
- domainRelationshipInfo
Type: Microsoft.VisualStudio.Modeling.DomainRelationshipInfo
The metadata for the domain relationship.
- targetRelationship
Type: Microsoft.VisualStudio.Modeling.ElementLink
The relationship.
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.