DirectorySearcher.SearchScope 屬性

定義

取得或設定值,表示伺服器觀察的搜尋範圍。

public:
 property System::DirectoryServices::SearchScope SearchScope { System::DirectoryServices::SearchScope get(); void set(System::DirectoryServices::SearchScope value); };
public System.DirectoryServices.SearchScope SearchScope { get; set; }
[System.DirectoryServices.DSDescription("DSSearchScope")]
public System.DirectoryServices.SearchScope SearchScope { get; set; }
[System.DirectoryServices.DSDescription("DSSearchScope")]
[System.ComponentModel.SettingsBindable(true)]
public System.DirectoryServices.SearchScope SearchScope { get; set; }
member this.SearchScope : System.DirectoryServices.SearchScope with get, set
[<System.DirectoryServices.DSDescription("DSSearchScope")>]
member this.SearchScope : System.DirectoryServices.SearchScope with get, set
[<System.DirectoryServices.DSDescription("DSSearchScope")>]
[<System.ComponentModel.SettingsBindable(true)>]
member this.SearchScope : System.DirectoryServices.SearchScope with get, set
Public Property SearchScope As SearchScope

屬性值

其中一個 SearchScope 值。 預設為 Subtree

屬性

例外狀況

該值不是其中一個 SearchScope 值。

適用於

另請參閱