IVsFontAndColorStorage.CloseCategory Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Closes the registry key containing font and color information for the Display Items in the currently open Category.
public:
int CloseCategory();
public:
int CloseCategory();
int CloseCategory();
public int CloseCategory ();
abstract member CloseCategory : unit -> int
Public Function CloseCategory () As Integer
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
The Category 's registry entry must be opened with OpenCategory.
In addition to explicitly closing a Category by calling CloseCategory
, a Category is closed automatically when:
The current instance of the IVsFontAndColorStorage interface is destroyed. -or-
When OpenCategory is called for another Category.
Explicitly closing entries by calling CloseCategory
is good practice as it ensures that no code reads from or writes to a Category that it is not supposed to.