ActiveDirectorySchemaClass.FindByName(DirectoryContext, String) 方法

定义

获取 Active Directory 域服务架构分区中与给定目录上下文和名称相匹配的 ActiveDirectorySchemaClass 对象。

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

参数

context
DirectoryContext

指定搜索上下文的 DirectoryContext 对象。

ldapDisplayName
String

指定搜索的架构类的 LDAP 显示名称的 String

返回

找到的架构类的 ActiveDirectorySchemaClass 对象。 如果未找到该类,则返回 null

例外

context 未引用有效的 ForestConfigurationSetldapDisplayName 为空字符串。

contextldapDisplayNamenull

适用于

另请参阅