DirectorySearcher.Tombstone Propriété

Définition

Obtient ou définit une valeur indiquant si la recherche doit également retourner les objets supprimés qui correspondent au filtre de recherche.

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

Valeur de propriété

true si les objets supprimés doivent être inclus dans la recherche ; sinon, false. La valeur par défaut est false.

Attributs

Exemples

L’exemple C# suivant montre comment définir la Tombstone propriété sur true.

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();  

S’applique à