DirectorySearcher.Tombstone Właściwość

Definicja

Pobiera lub ustawia wartość wskazującą, czy wyszukiwanie powinno również zwracać usunięte obiekty zgodne z filtrem wyszukiwania.

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

Wartość właściwości

Boolean

true jeśli usunięte obiekty powinny zostać uwzględnione w wyszukiwaniu; false Inaczej. Wartość domyślna to false.

Atrybuty

Przykłady

Poniższy przykład w języku C# pokazuje, jak ustawić Tombstone właściwość na truewartość .

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

Dotyczy