G
Guest
I am trying to use SearchRequest.Attributes property in
System.DirectoryServices.Protocols to specify the attributes returned by an
LDAP search. However, I cannot assign a value to this readonly value. The SDK
documents that you should set this value to a stringcollection of attributes
you wish the LDAP server to return.
Please advise.
Error message follows:
Error 1 Property or indexer
'System.DirectoryServices.Protocols.SearchRequest.Attributes' cannot be
assigned to -- it is read only C:\Documents and Settings\sysjl1\My
Documents\Visual Studio
2005\Projects\WindowsApplication8\WindowsApplication8\Form1.cs 40 13 WindowsApplication8
System.DirectoryServices.Protocols to specify the attributes returned by an
LDAP search. However, I cannot assign a value to this readonly value. The SDK
documents that you should set this value to a stringcollection of attributes
you wish the LDAP server to return.
Please advise.
Error message follows:
Error 1 Property or indexer
'System.DirectoryServices.Protocols.SearchRequest.Attributes' cannot be
assigned to -- it is read only C:\Documents and Settings\sysjl1\My
Documents\Visual Studio
2005\Projects\WindowsApplication8\WindowsApplication8\Form1.cs 40 13 WindowsApplication8