ElementFactory.CreateElement Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Aşırı Yüklemeler
| CreateElement(DomainClassInfo) |
Belirtilen türde yeni bir öğe örneği oluşturun. |
| CreateElement(Guid) |
Belirtilen türde yeni bir öğe örneği oluşturun. |
| CreateElement(DomainClassInfo, PropertyAssignment[]) |
Belirtilen türde yeni bir öğe örneği oluşturun. |
| CreateElement(Guid, PropertyAssignment[]) |
Belirtilen türde yeni bir öğe örneği oluşturun. |
CreateElement(DomainClassInfo)
Belirtilen türde yeni bir öğe örneği oluşturun.
public:
Microsoft::VisualStudio::Modeling::ModelElement ^ CreateElement(Microsoft::VisualStudio::Modeling::DomainClassInfo ^ domainClass);
public Microsoft.VisualStudio.Modeling.ModelElement CreateElement (Microsoft.VisualStudio.Modeling.DomainClassInfo domainClass);
member this.CreateElement : Microsoft.VisualStudio.Modeling.DomainClassInfo -> Microsoft.VisualStudio.Modeling.ModelElement
Public Function CreateElement (domainClass As DomainClassInfo) As ModelElement
Parametreler
- domainClass
- DomainClassInfo
Oluşturulacak nesnenin alan sınıfı.
Döndürülenler
Yeni öğe
Şunlara uygulanır
CreateElement(Guid)
Belirtilen türde yeni bir öğe örneği oluşturun.
public:
Microsoft::VisualStudio::Modeling::ModelElement ^ CreateElement(Guid domainClassId);
public Microsoft.VisualStudio.Modeling.ModelElement CreateElement (Guid domainClassId);
member this.CreateElement : Guid -> Microsoft.VisualStudio.Modeling.ModelElement
Public Function CreateElement (domainClassId As Guid) As ModelElement
Parametreler
- domainClassId
- Guid
Oluşturulacak nesnenin etki alanı sınıf KIMLIĞI.
Döndürülenler
Yeni öğe
Şunlara uygulanır
CreateElement(DomainClassInfo, PropertyAssignment[])
Belirtilen türde yeni bir öğe örneği oluşturun.
public:
Microsoft::VisualStudio::Modeling::ModelElement ^ CreateElement(Microsoft::VisualStudio::Modeling::DomainClassInfo ^ domainClass, ... cli::array <Microsoft::VisualStudio::Modeling::PropertyAssignment ^> ^ propertyAssignments);
public Microsoft.VisualStudio.Modeling.ModelElement CreateElement (Microsoft.VisualStudio.Modeling.DomainClassInfo domainClass, params Microsoft.VisualStudio.Modeling.PropertyAssignment[] propertyAssignments);
member this.CreateElement : Microsoft.VisualStudio.Modeling.DomainClassInfo * Microsoft.VisualStudio.Modeling.PropertyAssignment[] -> Microsoft.VisualStudio.Modeling.ModelElement
Public Function CreateElement (domainClass As DomainClassInfo, ParamArray propertyAssignments As PropertyAssignment()) As ModelElement
Parametreler
- domainClass
- DomainClassInfo
Oluşturulacak nesnenin alan sınıfı.
- propertyAssignments
- PropertyAssignment[]
Öğe oluşturulduktan hemen sonra ayarlanacak özellik atamalarının listesi.
Döndürülenler
Yeni öğe
Şunlara uygulanır
CreateElement(Guid, PropertyAssignment[])
Belirtilen türde yeni bir öğe örneği oluşturun.
public:
Microsoft::VisualStudio::Modeling::ModelElement ^ CreateElement(Guid domainClassId, ... cli::array <Microsoft::VisualStudio::Modeling::PropertyAssignment ^> ^ propertyAssignments);
public Microsoft.VisualStudio.Modeling.ModelElement CreateElement (Guid domainClassId, params Microsoft.VisualStudio.Modeling.PropertyAssignment[] propertyAssignments);
member this.CreateElement : Guid * Microsoft.VisualStudio.Modeling.PropertyAssignment[] -> Microsoft.VisualStudio.Modeling.ModelElement
Public Function CreateElement (domainClassId As Guid, ParamArray propertyAssignments As PropertyAssignment()) As ModelElement
Parametreler
- domainClassId
- Guid
Oluşturulacak nesnenin etki alanı sınıf KIMLIĞI.
- propertyAssignments
- PropertyAssignment[]
Öğe oluşturulduktan hemen sonra ayarlanacak özellik atamalarının listesi.
Döndürülenler
Yeni öğe