CS0103 C#当前上下文中不存在该名称

时间:2017-05-12 10:10:28

标签: c# asp.net

您好我在运行c#代码时遇到问题,这里是代码段

namespace LDAP
{
    class Program
    {
        static void Main(string[] args)
        {
            // Creating an LdapConnection instance 
            LdapConnection ldapConn = new LdapConnection();

            //Connect function will create a socket connection to the server
            ldapConn.Connect(ldapHost, ldapPort);

            //Bind function will Bind the user object Credentials to the Server
            ldapConn.Bind(userDN, userPasswd);
        }
    }
}

运行程序后,我收到以下错误消息 CS0103当前上下文中不存在名称“ldapHost”

0 个答案:

没有答案