ElementFactory Class
Represents a factory of domain model objects.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.Modeling.ElementFactory
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)
Syntax
'Declaration
Public Class ElementFactory
public class ElementFactory
public ref class ElementFactory
type ElementFactory = class end
public class ElementFactory
The ElementFactory type exposes the following members.
Properties
Name | Description | |
---|---|---|
Store |
Top
Methods
Name | Description | |
---|---|---|
CreateElement(Guid) | Creates a new element instance of a specified type. | |
CreateElement(DomainClassInfo) | Creates a new element instance of a specified type. | |
CreateElement(Guid, array<PropertyAssignment[]) | Creates a new element instance of a specified type. | |
CreateElement(DomainClassInfo, array<PropertyAssignment[]) | Creates a new element instance of a specified type. | |
CreateElementLink(Guid, array<RoleAssignment[]) | Creates a new element link. | |
CreateElementLink(DomainRelationshipInfo, array<RoleAssignment[]) | Creates a new element link. | |
CreateElementLink(Guid, array<PropertyAssignment[], array<RoleAssignment[]) | Creates a new element link. | |
CreateElementLink(Guid, Boolean, array<RoleAssignment[]) | Creates a new element link. | |
CreateElementLink(DomainRelationshipInfo, array<PropertyAssignment[], array<RoleAssignment[]) | Creates a new element link. | |
CreateElementLink(DomainRelationshipInfo, Boolean, array<RoleAssignment[]) | Creates a new element link. | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetPartitionForClass | Get the Partition to be used for creating elements of the specified class | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Fields
Name | Description | |
---|---|---|
IdPropertyAssignment | Represents an array of elements that play roles in the domain relationship instance. |
Top
Remarks
You can also use the methods in this class to create elements and element links.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.