ActiveDirectorySchemaClass.FindByName(DirectoryContext, String) Método

Definición

Obtiene un objeto ActiveDirectorySchemaClass en la partición del esquema de Active Directory Domain Services que coincide con un nombre y contexto de directorio determinados.Gets an ActiveDirectorySchemaClass object in the Active Directory Domain Services schema partition that matches a given directory context and name.

public:
 static System::DirectoryServices::ActiveDirectory::ActiveDirectorySchemaClass ^ FindByName(System::DirectoryServices::ActiveDirectory::DirectoryContext ^ context, System::String ^ ldapDisplayName);
public static System.DirectoryServices.ActiveDirectory.ActiveDirectorySchemaClass FindByName (System.DirectoryServices.ActiveDirectory.DirectoryContext context, string ldapDisplayName);
static member FindByName : System.DirectoryServices.ActiveDirectory.DirectoryContext * string -> System.DirectoryServices.ActiveDirectory.ActiveDirectorySchemaClass
Public Shared Function FindByName (context As DirectoryContext, ldapDisplayName As String) As ActiveDirectorySchemaClass

Parámetros

context
DirectoryContext

Objeto DirectoryContext que especifica el contexto de la búsqueda.An DirectoryContext object that specifies the context for the search.

ldapDisplayName
String

String que especifica el nombre LDAP para mostrar de la clase de esquema para la búsqueda.A String that specifies the LDAP display name of the schema class for the search.

Devoluciones

Objeto ActiveDirectorySchemaClass para la clase de esquema que se ha encontrado.An ActiveDirectorySchemaClass object for the schema class that was found. Devuelve null si no se encuentra la clase.Returns null if the class was not found.

Excepciones

No se encontró el objeto.The object was not found.

context no hace referencia a un objeto Forest o ConfigurationSet válido, o ldapDisplayName es una cadena vacía.context does not refer to a valid Forest or ConfigurationSet, ldapDisplayName is an empty string.

context o ldapDisplayName es null.context or ldapDisplayName is null.

Se aplica a

Consulte también: