FindProperty Method

ActiveDirectorySchema.FindProperty Method (String)

 

Retrieves the property with the specified name.

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

public ActiveDirectorySchemaProperty FindProperty(
	string ldapDisplayName
)

Parameters

ldapDisplayName
Type: System.String

The LDAP display name of the property to find.

Return Value

Type: System.DirectoryServices.ActiveDirectory.ActiveDirectorySchemaProperty

A ActiveDirectorySchemaProperty object that represents the property with the specified name.

Exception Condition
ActiveDirectoryObjectNotFoundException

A property with the specified name cannot be found.

ArgumentNullException

propertyName is null.

ArgumentException

propertyName is zero length.

ObjectDisposedException

The current object has been disposed.

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft