共用方式為


ModelFactory.CreateStaticMemberItem(EditingContext, Type, String) 方法

定義

建立新的 ModelItem,代表指定類別之靜態成員的值。

public:
 static System::Activities::Presentation::Model::ModelItem ^ CreateStaticMemberItem(System::Activities::Presentation::EditingContext ^ context, Type ^ type, System::String ^ memberName);
public static System.Activities.Presentation.Model.ModelItem CreateStaticMemberItem (System.Activities.Presentation.EditingContext context, Type type, string memberName);
static member CreateStaticMemberItem : System.Activities.Presentation.EditingContext * Type * string -> System.Activities.Presentation.Model.ModelItem
Public Shared Function CreateStaticMemberItem (context As EditingContext, type As Type, memberName As String) As ModelItem

參數

context
EditingContext

設計工具的編輯內容。

type
Type

包含參考之靜態成員的型別。

memberName
String

參考之靜態成員的名稱。

傳回

新建立的 ModelItem

適用於