DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomImage Class / ClearCaches Method / ClearCaches(CacheTypes) Method
The types of cached information to be cleared
Example

In This Topic
    ClearCaches(CacheTypes) Method
    In This Topic
    Clears the caches of the specified types
    Syntax
    'Declaration
     
    
    Public Overloads Sub ClearCaches( _
       ByVal Types As CacheTypes _
    ) 
    public void ClearCaches( 
       CacheTypes Types
    )

    Parameters

    Types
    The types of cached information to be cleared
    Example
    DicomImage image = new DicomImage("your_dicom_image.dcm");
    // Check CacheTypes for all available caching options
    image.ClearCaches(CacheTypes.All);
    image.ClearCaches(CacheTypes.PixelData);
    image.ClearCaches(CacheTypes.CompressedData);
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also