PrincipalContextExtensions..::..FindUserPrincipalByDistinguishedName Method

Finds the name of the user principal by distinguished.

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

Syntax


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

Parameters

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

Return Value

UserPrincipal.