DirectorySearcher.SearchScope 属性
定义
获取或设置指示服务器遵循的搜索范围的值。Gets or sets a value indicating the scope of the search that is observed by the server.
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 值之一。One of the SearchScope values. 默认值为 Subtree。The default is Subtree.
- 属性
例外
该值不是 SearchScope 值之一。The value is not one of the SearchScope values.