public void DeleteTree(bool isDeleted) { bool value; this.Init(); DebugLogger.WriteLine("ADActiveObject", string.Concat("DeleteTree called for ", this._adObject.DistinguishedName)); if (isDeleted) { value = true; } else { if (!this._adObject.Contains("Deleted")) { value = false; } else { value = (bool)this._adObject.GetValue("Deleted"); } } isDeleted = value; ADDeleteRequest aDDeleteRequest = new ADDeleteRequest(this._adObject.DistinguishedName, isDeleted); TreeDeleteControl treeDeleteControl = new TreeDeleteControl(); aDDeleteRequest.Controls.Add(treeDeleteControl); this._syncOps.Delete(this._sessionHandle, aDDeleteRequest); DebugLogger.WriteLine("ADActiveObject", string.Concat("DeleteTree succeeded for ", this._adObject.DistinguishedName)); }
ADDeleteResponse Microsoft.ActiveDirectory.Management.IADSyncOperations.Delete(ADSessionHandle handle, ADDeleteRequest request) { ADDeleteResponse aDDeleteResponse = null; AdwsConnection internalHandle = this.GetInternalHandle(handle); if (internalHandle != null) { aDDeleteResponse = internalHandle.Delete(request); this.CheckAndThrowReferralException(aDDeleteResponse); ADStoreAccess.ThrowExceptionForResultCodeError(aDDeleteResponse.ResultCode, aDDeleteResponse.ErrorMessage, null); } return aDDeleteResponse; }
ADDeleteResponse Microsoft.ActiveDirectory.Management.IADSyncOperations.Delete(ADSessionHandle handle, ADDeleteRequest request) { ADDeleteResponse aDDeleteResponse = null; ADDirectoryServiceConnection internalHandle = this.GetInternalHandle(handle); if (internalHandle != null) { aDDeleteResponse = internalHandle.Delete(request); this.CheckAndThrowReferralException(aDDeleteResponse); ADStoreAccess.ThrowExceptionForResultCodeError(aDDeleteResponse.ResultCode, aDDeleteResponse.ErrorMessage, null); } return(aDDeleteResponse); }
public ADDeleteResponse Delete(ADSessionHandle handle, ADDeleteRequest request) { throw new NotImplementedException(); }
public ADDeleteResponse Delete (ADSessionHandle handle, ADDeleteRequest request) { throw new NotImplementedException (); }