I try to change the OfficeLocations parameter of a IADsUser interface
Instance. I write code in C#.

If I write

currentUser.OfficeLocations="something";

this work's, but I can't reset this property. I have tried with
null,string.Empty,"" and nothing work's, a "attribute not correct for the
directory" error compare.

I use a blank space " ", but I don't like this solution, 'couse a blank
space remain in the property.

Thank's.
Boni

Re: IADsUser.OfficeLocations by Willy

Willy
Fri Jul 22 10:15:29 CDT 2005

If this is what you wan't you'll have to remove the property from the
collection.

Willy.
"Boni" <Boni@discussions.microsoft.com> wrote in message
news:7604B572-00D1-49BB-A214-B3927D8DDA2A@microsoft.com...
>I try to change the OfficeLocations parameter of a IADsUser interface
> Instance. I write code in C#.
>
> If I write
>
> currentUser.OfficeLocations="something";
>
> this work's, but I can't reset this property. I have tried with
> null,string.Empty,"" and nothing work's, a "attribute not correct for the
> directory" error compare.
>
> I use a blank space " ", but I don't like this solution, 'couse a blank
> space remain in the property.
>
> Thank's.
> Boni
>
>