次の方法で共有


DslDefinitionModelDeleteClosureBase.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.DslDefinition
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.10.0.dll)

Syntax

'宣言
Public Overridable Function ShouldVisitRelationship ( _
    walker As ElementWalker, _
    sourceElement As ModelElement, _
    sourceRoleInfo As DomainRoleInfo, _
    domainRelationshipInfo As DomainRelationshipInfo, _
    targetRelationship As ElementLink _
) As VisitorFilterResult
public virtual 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
)
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 function ShouldVisitRelationship(
    walker : ElementWalker, 
    sourceElement : ModelElement, 
    sourceRoleInfo : DomainRoleInfo, 
    domainRelationshipInfo : DomainRelationshipInfo, 
    targetRelationship : ElementLink
) : VisitorFilterResult

Parameters

Return Value

Type: Microsoft.VisualStudio.Modeling.VisitorFilterResult
Yes if the relationship should be traversed

Implements

IElementVisitorFilter.ShouldVisitRelationship(ElementWalker, ModelElement, DomainRoleInfo, DomainRelationshipInfo, ElementLink)

.NET Framework Security

See Also

Reference

DslDefinitionModelDeleteClosureBase Class

Microsoft.VisualStudio.Modeling.DslDefinition Namespace