ActiveDirectorySchemaProperty.FindByName(DirectoryContext, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets an ActiveDirectorySchemaProperty object in the Active Directory Domain Services schema partition that matches a given directory context and name.
public:
static System::DirectoryServices::ActiveDirectory::ActiveDirectorySchemaProperty ^ FindByName(System::DirectoryServices::ActiveDirectory::DirectoryContext ^ context, System::String ^ ldapDisplayName);
public static System.DirectoryServices.ActiveDirectory.ActiveDirectorySchemaProperty FindByName (System.DirectoryServices.ActiveDirectory.DirectoryContext context, string ldapDisplayName);
static member FindByName : System.DirectoryServices.ActiveDirectory.DirectoryContext * string -> System.DirectoryServices.ActiveDirectory.ActiveDirectorySchemaProperty
Public Shared Function FindByName (context As DirectoryContext, ldapDisplayName As String) As ActiveDirectorySchemaProperty
Parameters
- context
- DirectoryContext
A DirectoryContext object that specifies the context for the search.
- ldapDisplayName
- String
A String that specifies the LDAP display name of the schema property to search for.
Returns
An ActiveDirectorySchemaProperty object for the schema property that is found. null
if the property is not found.
Exceptions
The object was not found.
context
does not refer to a valid Forest or ConfigurationSet, or ldapDisplayName
parameter is an empty string.
context
or ldapDisplayName
is null
.
Applies to
See also
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應