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

适用于