您好我在运行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”