需要帮助来执行此代码 [英] Need Help to execute this code

查看:87
本文介绍了需要帮助来执行此代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨Guru的

我在代码项目中找到有关AD信息检索的代码.

对于C#来说,它是非常新的东西,并且正在尝试理解代码,但是我不知道如何执行类文件.


如何从Active Directory获取用户数据 [

Hi Guru''s

I find this code in Code project regarding AD info retrieve.

Am pretty much new to C# and am trying to understand the code but i have no idea how to execute the class file.


How to get User Data from the Active Directory[^]


Please enlighten me.

Thanks in Advance !

推荐答案

整篇文章分为一系列易于遵循的步骤:
看看上面写着"Step 1"的地方,然后做下面的内容.
依次执行步骤2"等等,直到达到步骤8"

您需要在实际检查广告的位置插入此代码.
如果您是控制台应用程序,则将其插入"Main"方法中.
如果这是WinForms应用程序,则创建一个按钮处理程序,并在其中插入此代码.

老实说,如果您无法弄清楚这篇文章(该内容非常简单),那么我强烈建议您首先从"Hello World"开始,然后逐步进行.练习时,请拿一本书并阅读.如果您是正式学习者,请按照课程说明进行操作.

从外观上看,您正在尝试跑步之前!
The whole article is organised into a series of easy-to-follow steps:
Look where it says "Step 1", then do what it says underneath.
Follow this with "Step 2" and so forth until you reach "Step 8"

This code needs to be inserted where you want to actually examine the AD.
If yours is a console application, then insert it in your "Main" method.
If this is a WinForms application, then create a button handler and insert this code there.

To be brutally honest, if you can''t work out what to do with this (rather simple) article, then I strongly suggest that you need to start at the beginning with "Hello World" and work your way up slowly. Get a book and read it though, doing the exercises. Or follow your course notes if you are formally learning.

By the look of it, you are trying to run before you can walk!


查看此链接

最好的链接给出了使用AD的完整思路

http://support.microsoft.com/kb/316748 [
see this link

it is best link that gives full idea of using AD

http://support.microsoft.com/kb/316748[^]


这篇关于需要帮助来执行此代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆