DirectorySearcher.Dispose(Boolean) 方法
定义
释放由 DirectorySearcher 对象使用的托管资源,还可以选择释放非托管资源。Releases the managed resources that are used by the DirectorySearcher object and, optionally, releases unmanaged resources.
protected:
override void Dispose(bool disposing);
protected override void Dispose (bool disposing);
override this.Dispose : bool -> unit
Protected Overrides Sub Dispose (disposing As Boolean)
参数
- disposing
- Boolean
如果此方法既释放托管资源又释放非托管资源,则为 true;如果只释放非托管资源,则为 false。true if this method releases both managed and unmanaged resources; false if it releases only unmanaged resources.