DirectorySearcher.Tombstone Properti
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Mendapatkan atau menetapkan nilai yang menunjukkan apakah pencarian juga harus mengembalikan objek yang dihapus yang cocok dengan filter pencarian.
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
Nilai Properti
true
jika objek yang dihapus harus disertakan dalam pencarian; false
Sebaliknya. Nilai defaultnya adalah false
.
- Atribut
Contoh
Contoh C# berikut menunjukkan cara mengatur properti ke Tombstonetrue
.
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();
Berlaku untuk
Berkolaborasi dengan kami di GitHub
Sumber untuk konten ini dapat ditemukan di GitHub, yang juga dapat Anda gunakan untuk membuat dan meninjau masalah dan menarik permintaan. Untuk informasi selengkapnya, lihat panduan kontributor kami.