DirectoryCatalog.Refresh 方法
定义
使用目录中与搜索模式相匹配的最新文件刷新 ComposablePartDefinition 对象。Refreshes the ComposablePartDefinition objects with the latest files in the directory that match the search pattern.
public:
void Refresh();
public void Refresh ();
member this.Refresh : unit -> unit
Public Sub Refresh ()
例外
由于对象构造,已删除指定的路径。The specified path has been removed since object construction.
注解
如果文件已添加到目录,它们也会添加到目录中。If files were added to the directory, they are also added to the catalog. 如果文件已从目录中删除,则它们也会从目录中删除。If files were removed from the directory, they are also removed from the catalog. 对于已删除的文件,无法从进程中卸载程序集,因此 ComposablePartDefinition 这些文件的对象将仅从目录中删除。For files that have been removed, the assembly cannot be unloaded from the process, so ComposablePartDefinition objects for those files will be removed only from the catalog.