JournalEntry.SetKeepAlive(DependencyObject, Boolean) 方法

定义

设置指定元素的 KeepAlive 附加属性。

public:
 static void SetKeepAlive(System::Windows::DependencyObject ^ dependencyObject, bool keepAlive);
public static void SetKeepAlive (System.Windows.DependencyObject dependencyObject, bool keepAlive);
static member SetKeepAlive : System.Windows.DependencyObject * bool -> unit
Public Shared Sub SetKeepAlive (dependencyObject As DependencyObject, keepAlive As Boolean)

参数

dependencyObject
DependencyObject

要在其上设置附加属性值的元素。

keepAlive
Boolean

若要将日记条目保留在内存中,则为 true;否则为 false

适用于

另请参阅