ActivityArgumentHelper.RegisterAccessorsGenerator 方法

定义

用活动类型功能注册以生成一系列 ArgumentAccessors。

public:
 static void RegisterAccessorsGenerator(Type ^ activityType, Func<System::Activities::Activity ^, System::Collections::Generic::IEnumerable<System::Activities::Presentation::ArgumentAccessor ^> ^> ^ argumentAccessorsGenerator);
public static void RegisterAccessorsGenerator (Type activityType, Func<System.Activities.Activity,System.Collections.Generic.IEnumerable<System.Activities.Presentation.ArgumentAccessor>> argumentAccessorsGenerator);
static member RegisterAccessorsGenerator : Type * Func<System.Activities.Activity, seq<System.Activities.Presentation.ArgumentAccessor>> -> unit
Public Shared Sub RegisterAccessorsGenerator (activityType As Type, argumentAccessorsGenerator As Func(Of Activity, IEnumerable(Of ArgumentAccessor)))

参数

activityType
Type

活动类型。

argumentAccessorsGenerator
Func<Activity,IEnumerable<ArgumentAccessor>>

在活动实例(activityType 类型)中的函数及返回 ArgumentAccessors 列表。

适用于