共用方式為


ModelBusAdapterManager.ValidateReference 方法 (ModelBusReference, ValidateReferenceOption)

 

驗證參考,並依此設定 LastStatus。預設實作是建立配接卡,以檢查能否解析模型。

命名空間:   Microsoft.VisualStudio.Modeling.Integration
組件:  Microsoft.VisualStudio.Modeling.Sdk.Integration.12.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Integration.12.0.dll 中)

語法

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

參數

傳回值

Type: Microsoft.VisualStudio.Modeling.Integration.ReferenceStatus

已設定至此參考的參考狀態

請參閱

ModelBusAdapterManager 類別
Microsoft.VisualStudio.Modeling.Integration 命名空間

回到頁首