DslDefinitionModelDomainModel.CreateElement Yöntem
Belirtilen türde bir öğe oluşturur.
Ad alanı: Microsoft.VisualStudio.Modeling.DslDefinition
Derleme: Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.11.0 (Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.11.0.dll içinde)
Sözdizimi
'Bildirim
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
)
Parametreler
- partition
Tür: Microsoft.VisualStudio.Modeling.Partition
Öğenin bulunduğu bölüm.
- elementType
Tür: System.Type
Bu etki alanı modeli ait öğe türü.
- propertyAssignments
Tür: array<Microsoft.VisualStudio.Modeling.PropertyAssignment[]
Yeni öğe özellik atamaları.
Dönüş Değeri
Tür: Microsoft.VisualStudio.Modeling.ModelElement
Oluşturulan öğesi.
.NET Framework Güvenliği
- Anında arayanlar için tam güven. Bu üye kısmen güvenilen kodla kullanılamaz. Daha fazla bilgi için bkz. Kısmen güvenilen kod kitaplıklarını kullanma.