共用方式為


SchemaModelViewerControllerBase.ModelElementAdded 方法

當存放區中加入模型項目時呼叫。

命名空間:  Microsoft.VisualStudio.Data.Schema.Package.Project.SchemaModelViewer
組件:  Microsoft.VisualStudio.Data.Schema.Package (在 Microsoft.VisualStudio.Data.Schema.Package.dll 中)

語法

'宣告
Protected MustOverride Sub ModelElementAdded ( _
    modelElement As IModelElement _
)
protected abstract void ModelElementAdded(
    IModelElement modelElement
)
protected:
virtual void ModelElementAdded(
    IModelElement^ modelElement
) abstract
abstract ModelElementAdded : 
        modelElement:IModelElement -> unit 
protected abstract function ModelElementAdded(
    modelElement : IModelElement
)

參數

備註

模型項目可能尚未進行解析。 這個方法的預設實作不執行任何動作。

.NET Framework 安全性

請參閱

參考

SchemaModelViewerControllerBase 類別

Microsoft.VisualStudio.Data.Schema.Package.Project.SchemaModelViewer 命名空間