共用方式為


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

'Declaration
Function RemoveCategory ( _
    ByRef rguidCategory As Guid _
) As Integer
int RemoveCategory(
    ref Guid rguidCategory
)
int RemoveCategory(
    [InAttribute] Guid% rguidCategory
)
abstract RemoveCategory : 
        rguidCategory:Guid byref -> int
function RemoveCategory(
    rguidCategory : Guid
) : int

Parameters

  • rguidCategory
    Type: Guid%

    [in] The GUID of the Category.

Return Value

Type: 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

Microsoft.VisualStudio.Shell.Interop Namespace

IVsFontAndColorStorage2