共用方式為


PropagateDeleteVisitorFilter.ShouldVisitRelationship 方法

呼叫以查詢篩選器,來源項目的特定關聯性是否已標示為 PropagateRemove,以及是否應包含在周遊之中

命名空間:  Microsoft.VisualStudio.Modeling
組件:  Microsoft.VisualStudio.Modeling.Sdk.12.0 (在 Microsoft.VisualStudio.Modeling.Sdk.12.0.dll 中)

語法

'宣告
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
)

參數

傳回值

類型:Microsoft.VisualStudio.Modeling.VisitorFilterResult
如果應該周遊關聯性,則為 [是]

實作

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

.NET Framework 安全性

請參閱

參考

PropagateDeleteVisitorFilter 類別

Microsoft.VisualStudio.Modeling 命名空間