共用方式為


EmbeddingVisitorFilter.ShouldVisitRelationship 方法

呼叫以詢問的篩選器,特殊的關聯性,從來源項目是否標示為彙總,並且應該包含在橫越

命名空間:  Microsoft.VisualStudio.Modeling
組件:  Microsoft.VisualStudio.Modeling.Sdk.11.0 (在 Microsoft.VisualStudio.Modeling.Sdk.11.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
true 如果應該周遊關聯性

實作

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

.NET Framework 安全性

請參閱

參考

EmbeddingVisitorFilter 類別

Microsoft.VisualStudio.Modeling 命名空間