Incorrect documentation for System.DirectoryServices.DirectorySearcher.PropertyNamesOnly RRS feed

  • Question

  • See this page:

    The documentation says, "Gets or sets a value indicating whether the search retrieves only the names of attributes to which values have been assigned."

    This is very misleading, if not outright wrong.

    I (and others - I can see it in some sample programs in the Internet) interpreted this to mean that when this property is true:
    - if a property has a value the name is retrieved
    - if a property does not have a value the name is not retrieved

    This is wrong!

    What this property actually does (and as is implied by its name), is that if it is true only property names are returned, and if it is false both property names and values (if there is a value) are returned.

    Thank you.
    Tuesday, January 12, 2010 8:19 PM

All replies

  • Thanks for pointing out this potential documentation error Rennie. I will research this to verify and correct the document as appropriate.


    Bruce Perler

    Windows Server Developer Docs

    Bruce Perler MSFT
    Thursday, June 3, 2010 1:33 AM