public void DeleteTrustRelationship(Forest targetForest) { this.CheckIfDisposed(); if (targetForest == null) { throw new ArgumentNullException("targetForest"); } TrustHelper.DeleteTrust(targetForest.GetDirectoryContext(), targetForest.Name, this.Name, true); TrustHelper.DeleteTrust(this.context, this.Name, targetForest.Name, true); }
public void DeleteLocalSideOfTrustRelationship(string targetForestName) { this.CheckIfDisposed(); if (targetForestName == null) { throw new ArgumentNullException("targetForestName"); } if (targetForestName.Length == 0) { throw new ArgumentException(Res.GetString("EmptyStringParameter"), "targetForestName"); } TrustHelper.DeleteTrust(this.context, this.Name, targetForestName, true); }
public void DeleteTrustRelationship(Forest targetForest) { CheckIfDisposed(); if (targetForest == null) { throw new ArgumentNullException(nameof(targetForest)); } // first delete the trust on the remote side TrustHelper.DeleteTrust(targetForest.GetDirectoryContext(), targetForest.Name, Name, true); // then delete the local side trust TrustHelper.DeleteTrust(_context, Name, targetForest.Name, true); }
public void DeleteLocalSideOfTrustRelationship(string targetForestName) { CheckIfDisposed(); if (targetForestName == null) { throw new ArgumentNullException(nameof(targetForestName)); } if (targetForestName.Length == 0) { throw new ArgumentException(SR.EmptyStringParameter, nameof(targetForestName)); } // delete local side of trust only TrustHelper.DeleteTrust(_context, Name, targetForestName, true); }