ModelService Class
This class is the main entry point that the designer uses to interact with the model.
Assembly: System.Activities.Presentation (in System.Activities.Presentation.dll)
| Name | Description | |
|---|---|---|
![]() | ModelService() | Creates a new ModelService. |
| Name | Description | |
|---|---|---|
![]() | Root | The root of the object hierarchy. |
| Name | Description | |
|---|---|---|
![]() | CreateItem(Object^) | Takes an existing instance and creates a model item that is a deep clone of the instance. |
![]() | CreateItem(Type^, CreateOptions, array<Object^>^) | Creates a ModelItem for a given type. This method is called by ModelFactory when the user wants to create a new item. |
![]() | CreateStaticMemberItem(Type^, String^) | Creates a new model item that represents the value of a static member of the given class. |
![]() | Equals(Object^) | 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.) |
![]() | Find(ModelItem^, Predicate<Type^>^) | Finds matching model items given a starting point from which to look. |
![]() | Find(ModelItem^, Type^) | Finds matching model items given a starting point from which to look. |
![]() | FromName(ModelItem^, String^) | Locates the ModelItem in the given scope with the given name. |
![]() | FromName(ModelItem^, String^, StringComparison) | Locates the ModelItem in the given scope with the given name. |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | MemberwiseClone() | |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() | ModelChanged | This event is raised when something in the model has changed. |
The service has a split between public and protected methods that you must implement when you create a derived class. The public methods are callable by anyone. The protected methods are invoked by the model.
Available since 4.0
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.



