Editar

Partilhar via


ModelService Class

Definition

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

public ref class ModelService abstract
public abstract class ModelService
type ModelService = class
Public MustInherit Class ModelService
Inheritance
ModelService

Remarks

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.

Constructors

ModelService()

Creates a new ModelService.

Properties

Root

The root of the object hierarchy.

Methods

CreateItem(Object)

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

CreateItem(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.

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)
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, StringComparison)

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

FromName(ModelItem, String)

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

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
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)

Events

ModelChanged

This event is raised when something in the model has changed.

Applies to