TaskUILifetimeHintAttribute 类

定义

定义一个任务生存期属性,该属性指定重新创建用户界面的代价高低情况。

public ref class TaskUILifetimeHintAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false)]
public sealed class TaskUILifetimeHintAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false)>]
type TaskUILifetimeHintAttribute = class
    inherit Attribute
Public NotInheritable Class TaskUILifetimeHintAttribute
Inherits Attribute
继承
TaskUILifetimeHintAttribute
属性

注解

在 Integration Services 中,此属性允许指定重新创建特定用户界面的成本。 例如,如果用户界面显示仅包含五个字段的下拉列表,则从本地计算机获取的所有字段,则用户界面的速度可能相当快且成本较低。 但是,如果用户界面中的下拉列表包含从远程服务器收集的信息,或者从网络中收集的信息速度较慢,则用户界面可能非常昂贵且耗时,以便重新创建。 若要将用户界面保留在内存中,直到包设计器关闭,请将 TaskUILifetimeHint 属性设置为 RecreationExpensive。 若要在用户关闭对话框后立即释放用户界面,请将 TaskUILifetimeHint 属性设置为 RecreationInexpensive

构造函数

TaskUILifetimeHintAttribute(TaskUILifetimeHint)

初始化 TaskUILifetimeHintAttribute 类的新实例。

属性

TaskUILifetimeHint

提供有关重新创建用户界面的代价高低情况的估计(存储为生存期提示)。

适用于