IMemberCreationService 介面

定義

警告

The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*

定義了在設計時動態建立、更新及移除某型別程式碼元素的方法。 同時也提供了方法,讓你能在設計時顯示程式碼。

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

備註

Note

此數據會討論已過時的類型和命名空間。 欲了解更多資訊,請參閱 Windows Workflow Foundation 4.5 中的 Deprecated Types。

方法

名稱 Description
CreateEvent(String, String, Type, AttributeInfo[], Boolean)
已淘汰.

透過使用指定的事件名稱、事件類型和屬性,在指定類別上建立事件。

CreateField(String, String, Type, Type[], MemberAttributes, CodeSnippetExpression, Boolean)
已淘汰.

透過使用指定的欄位名稱、欄位類型、參數類型、屬性及文字初始化表達式,在指定類別上建立欄位。

CreateProperty(String, String, Type, AttributeInfo[], Boolean, Boolean, Boolean, Type, Boolean)
已淘汰.

透過使用指定的屬性名稱、屬性類型和屬性,在指定類別上建立屬性。

RemoveEvent(String, String, Type)
已淘汰.

從指定類別中移除指定的事件。

RemoveProperty(String, String, Type)
已淘汰.

移除指定類別中的指定屬性。

ShowCode()
已淘汰.

在工作流程設計表面顯示新成員的程式碼。

ShowCode(Activity, String, Type)
已淘汰.

透過指定的 Activity、 指定方法及指定的代理類型,在工作流程設計表面顯示新成員的程式碼。

UpdateBaseType(String, Type)
已淘汰.

更新基底型態以與指定的類別關聯。

UpdateEvent(String, String, Type, String, Type, AttributeInfo[], Boolean, Boolean)
已淘汰.

將新名稱和類型設定為指定類別上的現有事件。

UpdateProperty(String, String, Type, String, Type, AttributeInfo[], Boolean, Boolean)
已淘汰.

在指定類別上為一個屬性設定新的名稱和類型。

UpdateTypeName(String, String)
已淘汰.

更新指定類別名稱。

適用於