Share via


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

Looks through the collection for invalid references and on each that is found invokes invalidAction

Namespace:  Microsoft.VisualStudio.Modeling.Integration.Picker
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Integration.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Integration.11.0.dll)

Syntax

'Declaration
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
)
public:
static void DetectBrokenReferences(
    IEnumerable<ModelElement^>^ collection, 
    IServiceProvider^ serviceProvider, 
    Action<ModelElement^, DomainPropertyInfo^, ModelBusReference^>^ brokenReferenceAction
)
static member DetectBrokenReferences : 
        collection:IEnumerable<ModelElement> * 
        serviceProvider:IServiceProvider * 
        brokenReferenceAction:Action<ModelElement, DomainPropertyInfo, ModelBusReference> -> unit
public static function DetectBrokenReferences(
    collection : IEnumerable<ModelElement>, 
    serviceProvider : IServiceProvider, 
    brokenReferenceAction : Action<ModelElement, DomainPropertyInfo, ModelBusReference>
)

Parameters

  • serviceProvider
    Type: IServiceProvider

.NET Framework Security

See Also

Reference

BrokenReferenceDetector Class

DetectBrokenReferences Overload

Microsoft.VisualStudio.Modeling.Integration.Picker Namespace