Compartir a través de


IVsFontAndColorStorage.CloseCategory Method

Closes the registry key containing font and color information for the Display Items in the currently open Category.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'Declaración
Function CloseCategory As Integer
'Uso
Dim instance As IVsFontAndColorStorage
Dim returnValue As Integer

returnValue = instance.CloseCategory()
int CloseCategory()
int CloseCategory()
abstract CloseCategory : unit -> int 
function CloseCategory() : int

Return Value

Type: System.Int32
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:

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.

.NET Framework Security

See Also

Reference

IVsFontAndColorStorage Interface

IVsFontAndColorStorage Members

Microsoft.VisualStudio.Shell.Interop Namespace

IVsFontAndColorStorage2