共用方式為


CacheDependency.SetCacheDependencyChanged 方法

定義

加入 Action 方法來處理在變更此相依性時通知有興趣的對象。

public:
 void SetCacheDependencyChanged(Action<System::Object ^, EventArgs ^> ^ dependencyChangedAction);
public void SetCacheDependencyChanged (Action<object,EventArgs> dependencyChangedAction);
member this.SetCacheDependencyChanged : Action<obj, EventArgs> -> unit
Public Sub SetCacheDependencyChanged (dependencyChangedAction As Action(Of Object, EventArgs))

參數

dependencyChangedAction
Action<Object,EventArgs>

相依性已變更的動作。

適用於