共用方式為


ModelingAdapter.TrySetDocumentHandler 方法

如果尚未設定 ModelingDocumentHandler (建構函式,例如),然後將它設定為做為參數傳遞的值。否則,會傳回 false。

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

語法

'宣告
Public Function TrySetDocumentHandler ( _
    documentHandler As ModelingDocumentHandler _
) As Boolean
public bool TrySetDocumentHandler(
    ModelingDocumentHandler documentHandler
)

參數

傳回值

型別:System.Boolean
Bool,以指示作業是否成功

.NET Framework 安全性

請參閱

參考

ModelingAdapter 類別

Microsoft.VisualStudio.Modeling.Integration 命名空間