PrincipalContextExtensions..::..FindUserPrincipalsByDistinguishedNames Method

Finds the user principals by distinguished names.

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

Syntax


public static IEnumerable<UserPrincipal> FindUserPrincipalsByDistinguishedNames(
	PrincipalContext principalContext,
	IEnumerable<string> distinguishedNames
)
Public Shared Function FindUserPrincipalsByDistinguishedNames ( _
	principalContext As PrincipalContext, _
	distinguishedNames As IEnumerable(Of String) _
) As IEnumerable(Of UserPrincipal)
public:
static IEnumerable<UserPrincipal^>^ FindUserPrincipalsByDistinguishedNames(
	PrincipalContext^ principalContext, 
	IEnumerable<String^>^ distinguishedNames
)

Parameters

principalContext
Type: PrincipalContext
The principal context.
distinguishedNames
Type: IEnumerable<(Of <(<'String>)>)>
The distinguished names.

Return Value

IEnumerable<UserPrincipal>.