C# Класс CubicOrange.Windows.Forms.ActiveDirectory.DirectoryObjectPickerDialog

Represents a common dialog that allows a user to select directory objects.

The directory object picker dialog box enables a user to select one or more objects from either the global catalog, a Microsoft Windows 2000 domain or computer, a Microsoft Windows NT 4.0 domain or computer, or a workgroup. The object types from which a user can select include user, contact, group, and computer objects.

This managed class wraps the Directory Object Picker common dialog from the Active Directory UI.

It simplifies the scope (Locations) and filter (ObjectTypes) selection by allowing a single filter to be specified which applies to all scopes (translating to both up-level and down-level filter flags as necessary).

The object type filter is also simplified by combining different types of groups (local, global, etc) and not using individual well known types in down-level scopes (only all well known types can be specified).

The scope location is also simplified by combining down-level and up-level variations into a single locations flag, e.g. external domains.

Наследование: System.Windows.Forms.CommonDialog
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
DirectoryObjectPickerDialog ( ) : System

Constructor. Sets all properties to their default values.

The default values for the DirectoryObjectPickerDialog properties are:

PropertyDefault value AllowedLocationsAll locations. AllowedObjectTypesAll object types. DefaultLocationsNone. (Will default to first location.) DefaultObjectTypesAll object types. MultiSelectfalse. SelectedObjectnull. SelectedObjectsEmpty array. ShowAdvancedViewfalse. TargetComputernull.

Reset ( ) : void

Resets all properties to their default values.

Защищенные методы

Метод Описание
RunDialog ( IntPtr hwndOwner ) : bool

Displays the Directory Object Picker (Active Directory) common dialog, when called by ShowDialog.

Приватные методы

Метод Описание
GetDefaultFilter ( ) : uint
GetDownLevelFilter ( ) : uint
GetOtherScope ( ) : uint
GetScope ( Locations locations ) : uint
GetStartingScope ( ) : uint
GetUpLevelFilter ( ) : uint
Initialize ( ) : IDsObjectPicker
ProcessSelections ( IDataObject dataObj ) : CubicOrange.Windows.Forms.ActiveDirectory.DirectoryObject[]

Описание методов

DirectoryObjectPickerDialog() публичный Метод

Constructor. Sets all properties to their default values.

The default values for the DirectoryObjectPickerDialog properties are:

PropertyDefault value AllowedLocationsAll locations. AllowedObjectTypesAll object types. DefaultLocationsNone. (Will default to first location.) DefaultObjectTypesAll object types. MultiSelectfalse. SelectedObjectnull. SelectedObjectsEmpty array. ShowAdvancedViewfalse. TargetComputernull.

public DirectoryObjectPickerDialog ( ) : System
Результат System

Reset() публичный Метод

Resets all properties to their default values.
public Reset ( ) : void
Результат void

RunDialog() защищенный Метод

Displays the Directory Object Picker (Active Directory) common dialog, when called by ShowDialog.
protected RunDialog ( IntPtr hwndOwner ) : bool
hwndOwner IntPtr Handle to the window that owns the dialog.
Результат bool