ModelBusAdapterManager.ValidateReference Method
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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Integration.10.0.dll)
Syntax
'Déclaration
Public Overridable Function ValidateReference ( _
reference As ModelBusReference, _
validationOption As ValidateReferenceOption _
) As ReferenceStatus
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 function ValidateReference(
reference : ModelBusReference,
validationOption : ValidateReferenceOption
) : ReferenceStatus
Parameters
- reference
Type: Microsoft.VisualStudio.Modeling.Integration.ModelBusReference
- validationOption
Type: Microsoft.VisualStudio.Modeling.Integration.ValidateReferenceOption
Return Value
Type: Microsoft.VisualStudio.Modeling.Integration.ReferenceStatus
The reference status that was set to the reference
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.