IMemberCreationService Interface

Defines methods to dynamically create, update and remove code elements for a type at design time. Methods are also provided that allow you to display code at design time.

Namespace:  System.Workflow.ComponentModel.Design
Assembly:  System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)

public interface IMemberCreationService

The IMemberCreationService type exposes the following members.

  NameDescription
Public methodCreateEventCreates an event on the specified class by using the specified event name, event type and attributes.
Public methodCreateFieldCreates a field on the specified class by using the specified field name, field type, parameter types, attributes and literal initialization expression.
Public methodCreatePropertyCreates a property on the specified class by using the specified property name, property type and attributes.
Public methodRemoveEventRemoves the specified event from the specified class.
Public methodRemovePropertyRemoves the specified property from the specified class.
Public methodShowCode()Displays code for the new member on a workflow design surface.
Public methodShowCode(Activity, String, Type)Displays code for the new member on a workflow design surface by using the specified Activity, the specified method and the specified delegate type.
Public methodUpdateBaseTypeUpdates the base type to associate with the specified class.
Public methodUpdateEventSets a new name and type to an existing event on the specified class.
Public methodUpdatePropertySets a new name and type to a property on the specified class.
Public methodUpdateTypeNameUpdates the name of the specified class.
Top

.NET Framework

Supported in: 4, 3.5, 3.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft