Partilhar via


Método IVsFontAndColorStorage.RemoveCategory (Guid)

 

Exclui os dados salvos para uma categoria do registro.

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

Sintaxe

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

Parâmetros

  • rguidCategory
    [in] O GUID da categoria.

Valor de retorno

Type: System.Int32

Se o método for bem-sucedido, ele retorna S_OK.Se ele falhar, ele retorna um código de erro.

Comentários

COM assinatura

De vsshell.idl:

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

Este método fornece uma maneira fácil de reverter as configurações de uma categoria para seus valores padrão.

Se uma categoria estiver aberta, IVsFontAndColorStorage.RemoveCategory irá tentar fechar a categoria antes de retorná-la ao seu estado original.

Consulte também

IVsFontAndColorStorage2
Interface IVsFontAndColorStorage
Namespace Microsoft.VisualStudio.Shell.Interop

Retornar ao topo