BrokenReferenceDetector.DetectBrokenReferences 方法 (IEnumerable<ModelElement>, IServiceProvider, Action<ModelElement, DomainPropertyInfo, ModelBusReference>)

通过收集查找无效的引用,并在找到的每个调用 invalidAction

命名空间:  Microsoft.VisualStudio.Modeling.Integration.Picker
程序集:  Microsoft.VisualStudio.Modeling.Sdk.Integration.11.0(在 Microsoft.VisualStudio.Modeling.Sdk.Integration.11.0.dll 中)

语法

声明
Public Shared Sub DetectBrokenReferences ( _
    collection As IEnumerable(Of ModelElement), _
    serviceProvider As IServiceProvider, _
    brokenReferenceAction As Action(Of ModelElement, DomainPropertyInfo, ModelBusReference) _
)
public static void DetectBrokenReferences(
    IEnumerable<ModelElement> collection,
    IServiceProvider serviceProvider,
    Action<ModelElement, DomainPropertyInfo, ModelBusReference> brokenReferenceAction
)

参数

.NET Framework 安全性

请参见

参考

BrokenReferenceDetector 类

DetectBrokenReferences 重载

Microsoft.VisualStudio.Modeling.Integration.Picker 命名空间