471,119 Members | 1,469 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,119 software developers and data experts.

SearchRequest.Attributes readonly when it should be updateable?

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\WindowsApplicati on8\Form1.cs 40 13 WindowsApplication8

Nov 8 '05 #1
1 1396

A sample about the LDAP


I hope this helps,

Nov 8 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by andreister | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.