45 references to AdsObject
System.DirectoryServices (45)
System\DirectoryServices\DirectoryEntry.cs (8)
448if (!(AdsObject is UnsafeNativeMethods.IAdsObjectOptions)) 681if (!(AdsObject is UnsafeNativeMethods.IAdsDeleteOps)) 684UnsafeNativeMethods.IAdsDeleteOps entry = (UnsafeNativeMethods.IAdsDeleteOps)AdsObject; 872if (!(newParent.AdsObject is UnsafeNativeMethods.IAdsContainer)) 876if (AdsObject.ADsPath.StartsWith("WinNT:", StringComparison.Ordinal)) 879string childPath = AdsObject.ADsPath; 880string parentPath = newParent.AdsObject.ADsPath; 963AdsObject.GetInfoEx(names, 0);
System\DirectoryServices\DirectoryEntryConfiguration.cs (13)
22return (ReferralChasingOption)((UnsafeNativeMethods.IAdsObjectOptions)_entry.AdsObject).GetOption((int)AdsOptions.ADS_OPTION_REFERRALS); 32((UnsafeNativeMethods.IAdsObjectOptions)_entry.AdsObject).SetOption((int)AdsOptions.ADS_OPTION_REFERRALS, value); 40return (SecurityMasks)((UnsafeNativeMethods.IAdsObjectOptions)_entry.AdsObject).GetOption((int)AdsOptions.ADS_OPTION_SECURITY_MASK); 47((UnsafeNativeMethods.IAdsObjectOptions)_entry.AdsObject).SetOption((int)AdsOptions.ADS_OPTION_SECURITY_MASK, value); 55return (int)((UnsafeNativeMethods.IAdsObjectOptions)_entry.AdsObject).GetOption((int)AdsOptions.ADS_OPTION_PAGE_SIZE); 62((UnsafeNativeMethods.IAdsObjectOptions)_entry.AdsObject).SetOption((int)AdsOptions.ADS_OPTION_PAGE_SIZE, value); 70return (int)((UnsafeNativeMethods.IAdsObjectOptions)_entry.AdsObject).GetOption((int)AdsOptions.ADS_OPTION_PASSWORD_PORTNUMBER); 74((UnsafeNativeMethods.IAdsObjectOptions)_entry.AdsObject).SetOption((int)AdsOptions.ADS_OPTION_PASSWORD_PORTNUMBER, value); 82return (PasswordEncodingMethod)((UnsafeNativeMethods.IAdsObjectOptions)_entry.AdsObject).GetOption((int)AdsOptions.ADS_OPTION_PASSWORD_METHOD); 89((UnsafeNativeMethods.IAdsObjectOptions)_entry.AdsObject).SetOption((int)AdsOptions.ADS_OPTION_PASSWORD_METHOD, value); 96return (string)((UnsafeNativeMethods.IAdsObjectOptions)_entry.AdsObject).GetOption((int)AdsOptions.ADS_OPTION_SERVERNAME); 103int val = (int)((UnsafeNativeMethods.IAdsObjectOptions)_entry.AdsObject).GetOption((int)AdsOptions.ADS_OPTION_MUTUAL_AUTH_STATUS); 120((UnsafeNativeMethods.IAdsObjectOptions)_entry.AdsObject).SetOption((int)AdsOptions.ADS_OPTION_QUOTA, accountName);
System\DirectoryServices\DirectorySearcher.cs (1)
613UnsafeNativeMethods.IAds adsObject = clonedRoot.AdsObject;
System\DirectoryServices\PropertyCollection.cs (9)
54if (!(_entry.AdsObject is UnsafeNativeMethods.IAdsPropertyList)) 59UnsafeNativeMethods.IAdsPropertyList propList = (UnsafeNativeMethods.IAdsPropertyList)_entry.AdsObject; 72int unmanagedResult = _entry.AdsObject.GetEx(propertyName, out var); 102if (!(_entry.AdsObject is UnsafeNativeMethods.IAdsPropertyList)) 111_ = (UnsafeNativeMethods.IAdsPropertyList)entryToUse.AdsObject; 224hr = ((UnsafeNativeMethods.IAdsPropertyList)_entry.AdsObject).Next(out prop); 249((UnsafeNativeMethods.IAdsPropertyList)_entry.AdsObject).Reset(); 317UnsafeNativeMethods.IAdsPropertyList propList = (UnsafeNativeMethods.IAdsPropertyList)propCollection._entry.AdsObject; 347UnsafeNativeMethods.IAdsPropertyList propList = (UnsafeNativeMethods.IAdsPropertyList)propCollection._entry.AdsObject;
System\DirectoryServices\PropertyValueCollection.cs (13)
120_entry.AdsObject.PutEx((int)AdsPropertyOperation.Update, PropertyName, allValues); 181int unmanagedResult = _entry.AdsObject.GetEx(PropertyName, out var); 228_entry.AdsObject.PutEx((int)AdsPropertyOperation.Clear, PropertyName, null); 258_entry.AdsObject.PutEx((int)AdsPropertyOperation.Append, PropertyName, allValues); 264_entry.AdsObject.PutEx((int)AdsPropertyOperation.Append, PropertyName, new object?[] { value }); 271_entry.AdsObject.PutEx((int)AdsPropertyOperation.Update, PropertyName, allValues); 290_entry.AdsObject.PutEx((int)AdsPropertyOperation.Delete, PropertyName, allValues); 296_entry.AdsObject.PutEx((int)AdsPropertyOperation.Delete, PropertyName, new object?[] { value }); 303_entry.AdsObject.PutEx((int)AdsPropertyOperation.Update, PropertyName, allValues); 314_entry.AdsObject.Put(PropertyName, newValue); 320_entry.AdsObject.PutEx((int)AdsPropertyOperation.Delete, PropertyName, new object?[] { oldValue }); 321_entry.AdsObject.PutEx((int)AdsPropertyOperation.Append, PropertyName, new object?[] { newValue }); 327_entry.AdsObject.PutEx((int)AdsPropertyOperation.Update, PropertyName, allValues);
System\DirectoryServices\SearchResultCollection.cs (1)
68_searchObject ??= (UnsafeNativeMethods.IDirectorySearch)_rootEntry.AdsObject; // get it only once