DirectorySearcher.Tombstone Egenskap

Definition

Hämtar eller anger ett värde som anger om sökningen också ska returnera borttagna objekt som matchar sökfiltret.

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

Egenskapsvärde

true om borttagna objekt ska inkluderas i sökningen; false Annars. Standardvärdet är false.

Attribut

Exempel

I följande C#-exempel visas hur du Tombstone anger egenskapen till 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();

Gäller för