PrincipalContextExtensions..::..FindPrincipalByDistinguishedName Method

Finds the name of the principal by distinguished.

Namespace:  MichaelBrandonMorris.Extensions.PrincipalExtensions
Assembly:  MichaelBrandonMorris.Extensions.PrincipalExtensions (in MichaelBrandonMorris.Extensions.PrincipalExtensions.dll)

Syntax


public static Principal FindPrincipalByDistinguishedName(
	PrincipalContext principalContext,
	string distinguishedName
)
Public Shared Function FindPrincipalByDistinguishedName ( _
	principalContext As PrincipalContext, _
	distinguishedName As String _
) As Principal
public:
static Principal^ FindPrincipalByDistinguishedName(
	PrincipalContext^ principalContext, 
	String^ distinguishedName
)

Parameters

principalContext
Type: PrincipalContext
The principal context.
distinguishedName
Type: String
Name of the distinguished.

Return Value

Principal.