/// <summary> /// Disconnects the connection to the server. /// </summary> public void Disconnect() { if (dmoServer != null) { // Physically disconnect from server dmoServer.DisConnect(); } if (this.IntegratedSecurity) { security.EndImpersonate(); } }
/// <summary> /// Disconnects the connection to the server. /// </summary> public void Disconnect() { // Physically disconnect from server if (dmoServer != null) { dmoServer.DisConnect(); } // if using impersonated NT login, end impersonation if (this.impersonateNtLogin) { security.EndImpersonate(); } }