Partager via


IVsFontAndColorStorage.RemoveCategory Method

Deletes saved data for a Category from the registry.

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

Syntax

'Déclaration
Function RemoveCategory ( _
    ByRef rguidCategory As Guid _
) As Integer
'Utilisation
Dim instance As IVsFontAndColorStorage
Dim rguidCategory As Guid
Dim returnValue As Integer

returnValue = instance.RemoveCategory(rguidCategory)
int RemoveCategory(
    ref Guid rguidCategory
)
int RemoveCategory(
    [InAttribute] Guid% rguidCategory
)
abstract RemoveCategory : 
        rguidCategory:Guid byref -> int 
function RemoveCategory(
    rguidCategory : Guid
) : int

Parameters

  • rguidCategory
    Type: System.Guid%
    [in] The GUID of the Category.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsFontAndColorStorage::RemoveCategory(
   [in] REFGUID rguidCategory
);

This method provides an easy way to revert the settings of a Category to their default values.

If a Category is open, IVsFontAndColorStorage.RemoveCategory will attempt to close the Category before returning it to its original state.

.NET Framework Security

See Also

Reference

IVsFontAndColorStorage Interface

IVsFontAndColorStorage Members

Microsoft.VisualStudio.Shell.Interop Namespace

IVsFontAndColorStorage2