Partager via


ModelBusAdapterManager.ValidateReference Method (ModelBusReference, ValidateReferenceOption)

 

Validates the reference and set the LastStatus accordingly. The default implementation is to create an adapter in order to check if model can be resolved or not.

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

Syntax

public virtual ReferenceStatus ValidateReference(
    ModelBusReference reference,
    ValidateReferenceOption validationOption
)
public:
virtual ReferenceStatus ValidateReference(
    ModelBusReference^ reference,
    ValidateReferenceOption validationOption
)
abstract ValidateReference : 
        reference:ModelBusReference *
        validationOption:ValidateReferenceOption -> ReferenceStatus
override ValidateReference : 
        reference:ModelBusReference *
        validationOption:ValidateReferenceOption -> ReferenceStatus
Public Overridable Function ValidateReference (
    reference As ModelBusReference,
    validationOption As ValidateReferenceOption
) As ReferenceStatus

Parameters

Return Value

Type: Microsoft.VisualStudio.Modeling.Integration.ReferenceStatus

The reference status that was set to the reference

See Also

ModelBusAdapterManager Class
Microsoft.VisualStudio.Modeling.Integration Namespace

Return to top