ActiveDirectorySchemaClass.MandatoryProperties Property
Gets an ActiveDirectorySchemaPropertyCollection object that contains the properties that the ActiveDirectorySchemaClass must contain.

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

Syntax

Visual Basic (Declaration)
Public ReadOnly Property MandatoryProperties As ActiveDirectorySchemaPropertyCollection
Visual Basic (Usage)
Dim instance As ActiveDirectorySchemaClass
Dim value As ActiveDirectorySchemaPropertyCollection

value = instance.MandatoryProperties
C#
public ActiveDirectorySchemaPropertyCollection MandatoryProperties { get; }
C++
public:
property ActiveDirectorySchemaPropertyCollection^ MandatoryProperties {
    ActiveDirectorySchemaPropertyCollection^ get ();
}
J#
/** @property */
public ActiveDirectorySchemaPropertyCollection get_MandatoryProperties ()
JScript
public function get MandatoryProperties () : ActiveDirectorySchemaPropertyCollection
XAML
Not applicable.

Property Value

An ActiveDirectorySchemaPropertyCollection object that contains the ActiveDirectorySchemaProperty objects that represent the properties that the ActiveDirectorySchemaClass object must contain.
Exceptions

Exception typeCondition

ActiveDirectoryOperationException

A call to the underlying directory service resulted in an error.

ActiveDirectoryServerDownException

The target server is either busy or unavailable.

Platforms

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.

Version Information

.NET Framework

Supported in: 3.0, 2.0
See Also

Tags :


Page view tracker