DirectorySearcher.Tombstone Propiedad

Definición

Obtiene o establece un valor que indica si la búsqueda debe devolver también los objetos eliminados que coincidan con el filtro de búsqueda.

public:
 property bool Tombstone { bool get(); void set(bool value); };
public bool Tombstone { get; set; }
[System.DirectoryServices.DSDescription("DSTombstone")]
[System.Runtime.InteropServices.ComVisible(false)]
public bool Tombstone { get; set; }
member this.Tombstone : bool with get, set
[<System.DirectoryServices.DSDescription("DSTombstone")>]
[<System.Runtime.InteropServices.ComVisible(false)>]
member this.Tombstone : bool with get, set
Public Property Tombstone As Boolean

Valor de propiedad

Es true si se deben incluir los objetos eliminados en la búsqueda; en caso contrario, es false. El valor predeterminado es false.

Atributos

Ejemplos

En el ejemplo de C# siguiente se muestra cómo establecer la Tombstone propiedad trueen .

using System.DirectoryServices;  
...  
// Create a DirectorySearcher object.  
DirectorySearcher src = new DirectorySearcher("(isDeleted=true)");  
//Set the Tombstone property to true.  
src.Tombstone = true;  
//Use the FindAll method to get search results.  
SearchResultCollection res = src.FindAll();  

Se aplica a