SearchRequest.Attributes readonly when it should be updateable?

  • Thread starter Thread starter Guest
  • Start date Start date
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top