以编程方式创建时,要传递Path参数。代码如下:
string strpath="LDAP://DC=redmond,DC=corp,DC=microsoft,DC=com";
String.DirectoryServices.DirectoryEntry myDir=new
System.DirectoryServices.DirectoryEntry(strpath);
label1.text=myDir.Name+myDir.Guid;
string strpath="LDAP://DC=redmond,DC=corp,DC=microsoft,DC=com";
String.DirectoryServices.DirectoryEntry myDir=new
System.DirectoryServices.DirectoryEntry(strpath);
label1.text=myDir.Name+myDir.Guid;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货