ModelingAdapter.TrySetDocumentHandler 方法 (ModelingDocumentHandler)
如果 ModelingDocumentHandler 尚未設定的 (即由建構函式),則將它設定為當做參數傳遞的值。否則傳回 false。
命名空間: Microsoft.VisualStudio.Modeling.Integration
組件: Microsoft.VisualStudio.Modeling.Sdk.Integration.12.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Integration.12.0.dll 中)
語法
public bool TrySetDocumentHandler(
ModelingDocumentHandler documentHandler
)
public:
bool TrySetDocumentHandler(
ModelingDocumentHandler^ documentHandler
)
member TrySetDocumentHandler :
documentHandler:ModelingDocumentHandler -> bool
Public Function TrySetDocumentHandler (
documentHandler As ModelingDocumentHandler
) As Boolean
參數
- documentHandler
ModelingDocumentHandler,用以設定此 ModelingAdapter
傳回值
Type: System.Boolean
用來表示作業是否成功的 Bool
請參閱
ModelingAdapter 類別
Microsoft.VisualStudio.Modeling.Integration 命名空間
回到頁首