ModelBus.ValidateReference Method
Validates a given reference using the corresponding adapter. This method updates the LastStatus of a reference in addition to returning it.
Namespace: Microsoft.VisualStudio.Modeling.Integration
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Integration.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Integration.10.0.dll)
Syntax
声明
Public Function ValidateReference ( _
reference As ModelBusReference, _
validationOption As ValidateReferenceOption _
) As ReferenceStatus
public ReferenceStatus ValidateReference(
ModelBusReference reference,
ValidateReferenceOption validationOption
)
public:
virtual ReferenceStatus ValidateReference(
ModelBusReference^ reference,
ValidateReferenceOption validationOption
) sealed
abstract ValidateReference :
reference:ModelBusReference *
validationOption:ValidateReferenceOption -> ReferenceStatus
override ValidateReference :
reference:ModelBusReference *
validationOption:ValidateReferenceOption -> ReferenceStatus
public final function ValidateReference(
reference : ModelBusReference,
validationOption : ValidateReferenceOption
) : ReferenceStatus
Parameters
- reference
Type: Microsoft.VisualStudio.Modeling.Integration.ModelBusReference
The reference to the adapter
- validationOption
Type: Microsoft.VisualStudio.Modeling.Integration.ValidateReferenceOption
ValidateReferenceOptions
Return Value
Type: Microsoft.VisualStudio.Modeling.Integration.ReferenceStatus
The status for the reference
Implements
IModelBus.ValidateReference(ModelBusReference, ValidateReferenceOption)
.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.