共用方式為


CoreDomainModel.CreateElement 方法

建立指定型別的項目。

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

語法

'宣告
Public Overrides NotOverridable Function CreateElement ( _
    partition As Partition, _
    elementType As Type, _
    propertyAssignments As PropertyAssignment() _
) As ModelElement
public override sealed ModelElement CreateElement(
    Partition partition,
    Type elementType,
    PropertyAssignment[] propertyAssignments
)

參數

  • elementType
    類型:System.Type
    屬於這個網域模型的項目型別。

傳回值

類型:Microsoft.VisualStudio.Modeling.ModelElement
建立的項目。

.NET Framework 安全性

請參閱

參考

CoreDomainModel 類別

Microsoft.VisualStudio.Modeling 命名空間