This documentation is archived and is not being maintained.

DirectoryControl.DirectoryControl Constructor

The DirectoryControl constructor creates an instance of the DirectoryControl class using the specified values for the type, value, criticality, and ServerSide properties.

Namespace: System.DirectoryServices.Protocols
Assembly: System.DirectoryServices.Protocols (in system.directoryservices.protocols.dll)

public DirectoryControl (
	string type,
	byte[] value,
	bool isCritical,
	bool serverSide
)
public DirectoryControl (
	String type, 
	byte[] value, 
	boolean isCritical, 
	boolean serverSide
)
public function DirectoryControl (
	type : String, 
	value : byte[], 
	isCritical : boolean, 
	serverSide : boolean
)
Not applicable.

Parameters

type

The control type.

value

The value associated with the control.

isCritical

Specifies if the control is critical. The default is true.

serverSide

Specifies if this is a server-side control. The default is true. false specifies a client-side control.

Exception typeCondition

ArgumentNullException

type parameter is a null reference (Nothing in Visual Basic).

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0
Show: