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
파일 보기 프로젝트 열기: OPCFoundation/UA-.NET 1 사용 예제들

공개 메소드들

메소드 설명
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