/// <summary> /// Export and delete the current security context. /// </summary> /// <returns>The exported security context.</returns> /// <remarks>The security context will not longer be usable afterwards.</remarks> public ExportedSecurityContext Export() { var context = SecurityContextUtils.ExportContext(_context, SecPkgContextExportFlags.DeleteOld, _creds.PackageName, true); Dispose(); return(context); }
/// <summary> /// Export the security context. /// </summary> /// <returns>The exported security context.</returns> public ExportedSecurityContext Export() { return(SecurityContextUtils.ExportContext(_context, SecPkgContextExportFlags.None, _creds.PackageName)); }