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
Protected property Store

Top

Methods

  Name Description
Public method CreateElement(Guid) Creates a new element instance of a specified type.
Public method CreateElement(DomainClassInfo) Creates a new element instance of a specified type.
Public method CreateElement(Guid, array<PropertyAssignment[]) Creates a new element instance of a specified type.
Public method CreateElement(DomainClassInfo, array<PropertyAssignment[]) Creates a new element instance of a specified type.
Public method CreateElementLink(Guid, array<RoleAssignment[]) Creates a new element link.
Public method CreateElementLink(DomainRelationshipInfo, array<RoleAssignment[]) Creates a new element link.
Public method CreateElementLink(Guid, array<PropertyAssignment[], array<RoleAssignment[]) Creates a new element link.
Public method CreateElementLink(Guid, Boolean, array<RoleAssignment[]) Creates a new element link.
Public method CreateElementLink(DomainRelationshipInfo, array<PropertyAssignment[], array<RoleAssignment[]) Creates a new element link.
Public method CreateElementLink(DomainRelationshipInfo, Boolean, array<RoleAssignment[]) Creates a new element link.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Protected method GetPartitionForClass Get the Partition to be used for creating elements of the specified class
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Fields

  Name Description
Public fieldStatic member 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.

See Also

Reference

Microsoft.VisualStudio.Modeling Namespace