Idioma

DirectorySearcher.Tombstone Propriedade

Definição

Recebe ou define um valor que indica se a pesquisa também deve devolver objetos eliminados que correspondam ao filtro de pesquisa.

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 Propriedade

true se os objetos eliminados devem ser incluídos na pesquisa; false caso contrário. O valor predefinido é false.

Atributos

Exemplos

O exemplo seguinte de C# mostra como definir a Tombstone propriedade para 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();

Aplica-se a