共用方式為


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

適用於

另請參閱