ModelService Class

.NET Framework (current version)
 

This class is the main entry point that the designer uses to interact with the model.

Namespace:   System.Activities.Presentation.Services
Assembly:  System.Activities.Presentation (in System.Activities.Presentation.dll)

System.Object
  System.Activities.Presentation.Services.ModelService

public abstract class ModelService

NameDescription
System_CAPS_protmethodModelService()

Creates a new ModelService.

NameDescription
System_CAPS_pubpropertyRoot

The root of the object hierarchy.

NameDescription
System_CAPS_protmethodCreateItem(Object)

Takes an existing instance and creates a model item that is a deep clone of the instance.

System_CAPS_protmethodCreateItem(Type, CreateOptions, Object[])

Creates a ModelItem for a given type. This method is called by ModelFactory when the user wants to create a new item.

System_CAPS_protmethodCreateStaticMemberItem(Type, String)

Creates a new model item that represents the value of a static member of the given class.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodFind(ModelItem, Predicate<Type>)

Finds matching model items given a starting point from which to look.

System_CAPS_pubmethodFind(ModelItem, Type)

Finds matching model items given a starting point from which to look.

System_CAPS_pubmethodFromName(ModelItem, String)

Locates the ModelItem in the given scope with the given name.

System_CAPS_pubmethodFromName(ModelItem, String, StringComparison)

Locates the ModelItem in the given scope with the given name.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubeventModelChanged

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.

.NET Framework
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.

Return to top
Show: