SqlCacheDependencyDatabaseCollection.Clear 方法

定义

从集合中移除所有 SqlCacheDependencyDatabase 对象。Removes all the SqlCacheDependencyDatabase objects from the collection.

public:
 void Clear();
public void Clear ();
member this.Clear : unit -> unit
Public Sub Clear ()

示例

下面的代码示例说明如何使用 Clear 方法。The following code example shows how to use the Clear method.

sqlCdds.Clear();

sqlCdds.Clear()

注解

此方法将指令插入到 clear 配置文件的相应部分,以移除对更高级别配置文件中定义的元素的所有引用。This method inserts a clear directive into the appropriate section of the configuration file to remove all references to elements defined in a higher-level configuration file.

适用于

另请参阅