Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Vb.net Cache Leeren und anzeigen

Empfohlene Antworten

Hallo ich wollte mal fragen ob jemand weiß wie ich von den webbrowser control den Cache leeren klann und wie ich ihn anzeigen lassen kann?

Hi sunny-boy3,

hab ma gegoogelt un bin auf diese Seite hier gestoßen:

How to clear the cache when your application hosts a WebBrowser control in Visual C# .NET

Hab hier die Stelle markiert, wo (denke ich) der Cache abgerufen wird (is ziemlich am Ende vom Code):


...

cacheEntryInfoBufferSize = cacheEntryInfoBufferSizeInitial;

            cacheEntryInfoBuffer = Marshal.AllocHGlobal(cacheEntryInfoBufferSize);

            enumHandle = FindFirstUrlCacheEntry(null, cacheEntryInfoBuffer, ref cacheEntryInfoBufferSizeInitial);


            while(true)

            {

//HIER WIRD DER CACHE ABGERUFEN

            internetCacheEntry = (INTERNET_CACHE_ENTRY_INFOA)Marshal.PtrToStructure(cacheEntryInfoBuffer, typeof(INTERNET_CACHE_ENTRY_INFOA));		


                cacheEntryInfoBufferSizeInitial = cacheEntryInfoBufferSize;

                returnValue = DeleteUrlCacheEntry(internetCacheEntry.lpszSourceUrlName);				

                if (!returnValue)

...

Hätte nich gedacht, dass es so aufwendig is^^

Hoffe ich konnte helfen...

Grüße

ToolsDevler

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.