Método IVsRegisterEditors.RegisterEditor (Guid, IVsEditorFactory, UInt32)

 

Registra um editor.

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

Sintaxe

int RegisterEditor(
    [InAttribute] ref Guid rguidEditor,
    IVsEditorFactory pVsPF,
    out uint pdwCookie
)
int RegisterEditor(
    [InAttribute] Guid% rguidEditor,
    IVsEditorFactory^ pVsPF,
    [OutAttribute] unsigned int% pdwCookie
)
abstract RegisterEditor : 
        rguidEditor:Guid byref *
        pVsPF:IVsEditorFactory *
        pdwCookie:uint32 byref -> int
Function RegisterEditor (
    <InAttribute> ByRef rguidEditor As Guid,
    pVsPF As IVsEditorFactory,
    <OutAttribute> ByRef pdwCookie As UInteger
) As Integer

Parâmetros

  • rguidEditor
    [in] GUID exclusivo do editor que foi registrado.
  • pdwCookie
    [out] Identificador abstrato a ser usado posteriormente para cancelar o registro deste editor.

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 IVsRegisterEditors::RegisterEditor(
   [in] REFGUID rguidEditor,
   [in] IVsEditorFactory *pVsPF,
   [out] VSCOOKIE *pdwCookie
);

O GUID da fábrica de editor que estava registrado é usado nos VSPackages SetSite.

Consulte também

Interface IVsRegisterEditors
Namespace Microsoft.VisualStudio.Shell.Interop

Retornar ao topo