Skip to content

"InvokeSet should not be used" #922

@thx1200

Description

@thx1200

InvokeSet is the only way I can see that allows you to set the value of an attribute that currently has no value. The Properties collection can only be used to update attributes that have a value. Even if you specify additional properties to return in the DirectorySearcher, the entry will not contain them and there is no way to set them.

There is a method "Add" but you cannot use it because the collection is a fixed size.

If there is a better way for this scenario, the documentation should specify how because InvokeSet is the only way I can see to do it...


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions