IVsFontAndColorCacheManager::CheckCacheable Method (Guid, Int32)
Determines if a given Category's state can be cached.
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Parameters
- rguidCategory
-
Type:
System::Guid
[in] Specifies the GUID of the Category of Display Items whose caching state is being checked.
- pfCacheable
-
Type:
System::Int32
[out] Flag indicating if a Category's default Fonts and Colors state can be cached.
If pfHasData is true, the Category's state can be cached.
If pfHasData is false, the Category's state cannot be cached.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
By default, the Fonts and Colors state of all categories is cacheable.
However, a VSPackage can prevent their settings from being cached by creating a registry the registry entry [HKLM\SOFTWARE\Microsoft \Visual Studio\<Visual Studio version>\FontAndColors\<Category>\Cacheable] and settings its value to 0.
Here <Category> is the non-localized name of the category and <Version> is the version of Visual Studio, for example 8.0.
Note |
|---|
The root path of HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\<Version> can be overridden with an alternate root when the Visual Studio shell is initialized. For more information see, Command-Line Switches (Visual Studio SDK). |
From vsshell80.idl:
HRESULT IVsFontAndColorCacheManager::CheckCacheable(
[in] REFGUID rguidCategory,
[out] BOOL *pfCacheable
);
