我目前正在尝试使用PrincipalContext类通过ActiveDirectory服务进行身份验证。我想让我的应用程序使用密封和SSL上下文对域进行身份验证。为此,我必须使用thefollowingconstructorofPrincipalContext(linktoMSDNpage):publicPrincipalContext(ContextTypecontextType,stringname,stringcontainer,ContextOptionsoptions)具体来说,我是这样使用构造函数的:PrincipalContextdomainContext=newPrin
我目前正在尝试使用PrincipalContext类通过ActiveDirectory服务进行身份验证。我想让我的应用程序使用密封和SSL上下文对域进行身份验证。为此,我必须使用thefollowingconstructorofPrincipalContext(linktoMSDNpage):publicPrincipalContext(ContextTypecontextType,stringname,stringcontainer,ContextOptionsoptions)具体来说,我是这样使用构造函数的:PrincipalContextdomainContext=newPrin