IMemberCreationService IMemberCreationService IMemberCreationService IMemberCreationService Interface

定義

警告

此 API 現已淘汰。

定義在設計階段以動態方式建立、更新及移除型別之程式碼項目的方法。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.

public interface class IMemberCreationService
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public interface IMemberCreationService
type IMemberCreationService = interface
Public Interface IMemberCreationService
屬性

備註

注意

此資料討論已被汰換的類型及命名空間。This material discusses types and namespaces that are obsolete. 如需詳細資訊,請參閱 Windows Workflow Foundation 4.5 中即將淘汰的類型For more information, see Deprecated Types in Windows Workflow Foundation 4.5.

方法

CreateEvent(String, String, Type, AttributeInfo[], Boolean) CreateEvent(String, String, Type, AttributeInfo[], Boolean) CreateEvent(String, String, Type, AttributeInfo[], Boolean) CreateEvent(String, String, Type, AttributeInfo[], Boolean)

使用指定的事件名稱、事件型別和屬性,建立指定類別的事件。Creates an event on the specified class by using the specified event name, event type and attributes.

CreateField(String, String, Type, Type[], MemberAttributes, CodeSnippetExpression, Boolean) CreateField(String, String, Type, Type[], MemberAttributes, CodeSnippetExpression, Boolean) CreateField(String, String, Type, Type[], MemberAttributes, CodeSnippetExpression, Boolean) CreateField(String, String, Type, Type[], MemberAttributes, CodeSnippetExpression, Boolean)

使用指定的欄位名稱、欄位型別、參數型別、屬性和常值 (Literal) 初始化運算式,建立指定類別的欄位。Creates a field on the specified class by using the specified field name, field type, parameter types, attributes and literal initialization expression.

CreateProperty(String, String, Type, AttributeInfo[], Boolean, Boolean, Boolean, Type, Boolean) CreateProperty(String, String, Type, AttributeInfo[], Boolean, Boolean, Boolean, Type, Boolean) CreateProperty(String, String, Type, AttributeInfo[], Boolean, Boolean, Boolean, Type, Boolean) CreateProperty(String, String, Type, AttributeInfo[], Boolean, Boolean, Boolean, Type, Boolean)

使用指定的屬性 (Property) 名稱、屬性 (Property) 型別和屬性 (Attribute),建立指定類別的屬性 (Property)。Creates a property on the specified class by using the specified property name, property type and attributes.

RemoveEvent(String, String, Type) RemoveEvent(String, String, Type) RemoveEvent(String, String, Type) RemoveEvent(String, String, Type)

從指定類別移除指定的事件。Removes the specified event from the specified class.

RemoveProperty(String, String, Type) RemoveProperty(String, String, Type) RemoveProperty(String, String, Type) RemoveProperty(String, String, Type)

從指定類別移除指定的屬性。Removes the specified property from the specified class.

ShowCode() ShowCode() ShowCode() ShowCode()

在工作流程設計介面上顯示新成員的程式碼。Displays code for the new member on a workflow design surface.

ShowCode(Activity, String, Type) ShowCode(Activity, String, Type) ShowCode(Activity, String, Type) ShowCode(Activity, String, Type)

使用指定的 Activity、指定的方法和指定的委派 (Delegate) 型別,在工作流程設計介面上顯示新成員的程式碼。Displays code for the new member on a workflow design surface by using the specified Activity, the specified method and the specified delegate type.

UpdateBaseType(String, Type) UpdateBaseType(String, Type) UpdateBaseType(String, Type) UpdateBaseType(String, Type)

更新要與指定類別關聯的基底型別 (Base Type)。Updates the base type to associate with the specified class.

UpdateEvent(String, String, Type, String, Type, AttributeInfo[], Boolean, Boolean) UpdateEvent(String, String, Type, String, Type, AttributeInfo[], Boolean, Boolean) UpdateEvent(String, String, Type, String, Type, AttributeInfo[], Boolean, Boolean) UpdateEvent(String, String, Type, String, Type, AttributeInfo[], Boolean, Boolean)

將新名稱和型別設定為指定類別的現有事件。Sets a new name and type to an existing event on the specified class.

UpdateProperty(String, String, Type, String, Type, AttributeInfo[], Boolean, Boolean) UpdateProperty(String, String, Type, String, Type, AttributeInfo[], Boolean, Boolean) UpdateProperty(String, String, Type, String, Type, AttributeInfo[], Boolean, Boolean) UpdateProperty(String, String, Type, String, Type, AttributeInfo[], Boolean, Boolean)

將新名稱和型別設定為指定類別的屬性。Sets a new name and type to a property on the specified class.

UpdateTypeName(String, String) UpdateTypeName(String, String) UpdateTypeName(String, String) UpdateTypeName(String, String)

更新指定類別的名稱。Updates the name of the specified class.

適用於