internal void InitADsObjectOptions() { if (this.adsObject is System.DirectoryServices.Interop.UnsafeNativeMethods.IAdsObjectOptions2) { object obj2 = null; int hr = 0; hr = ((System.DirectoryServices.Interop.UnsafeNativeMethods.IAdsObjectOptions2) this.adsObject).GetOption(8, out obj2); if (hr != 0) { if ((hr != -2147467263) && (hr != -2147463160)) { throw COMExceptionHelper.CreateFormattedComException(hr); } } else { System.DirectoryServices.Interop.Variant variant = new System.DirectoryServices.Interop.Variant { varType = 11, boolvalue = -1 }; ((System.DirectoryServices.Interop.UnsafeNativeMethods.IAdsObjectOptions2) this.adsObject).SetOption(8, variant); this.allowMultipleChange = true; } } }