ActiveDirectoryService.GetPrincipalContext Method

Namespace:
Weavy.Core.Services
Assembly:
Weavy.Core.dll

GetPrincipalContext(String, String, String)

Gets a container that is used as the base of all operations against the ActiveDirectory.

public static PrincipalContext GetPrincipalContext(string domain, string username, string password)

Parameters

domain
System.String
username
System.String
password
System.String

Returns

System.DirectoryServices.AccountManagement.PrincipalContext