Compartir a través de


IVsRegisterNewDialogFilters.RegisterAddNewItemDialogFilter Method

Registers a filter for the Add New Item dialog.

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

Syntax

'Declaración
Function RegisterAddNewItemDialogFilter ( _
    pFilter As IVsFilterAddProjectItemDlg, _
    <OutAttribute> ByRef pdwFilterCookie As UInteger _
) As Integer
'Uso
Dim instance As IVsRegisterNewDialogFilters
Dim pFilter As IVsFilterAddProjectItemDlg
Dim pdwFilterCookie As UInteger
Dim returnValue As Integer

returnValue = instance.RegisterAddNewItemDialogFilter(pFilter, _
    pdwFilterCookie)
int RegisterAddNewItemDialogFilter(
    IVsFilterAddProjectItemDlg pFilter,
    out uint pdwFilterCookie
)
int RegisterAddNewItemDialogFilter(
    [InAttribute] IVsFilterAddProjectItemDlg^ pFilter, 
    [OutAttribute] unsigned int% pdwFilterCookie
)
abstract RegisterAddNewItemDialogFilter : 
        pFilter:IVsFilterAddProjectItemDlg * 
        pdwFilterCookie:uint32 byref -> int 
function RegisterAddNewItemDialogFilter(
    pFilter : IVsFilterAddProjectItemDlg, 
    pdwFilterCookie : uint
) : int

Parameters

Return Value

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

.NET Framework Security

See Also

Reference

IVsRegisterNewDialogFilters Interface

IVsRegisterNewDialogFilters Members

Microsoft.VisualStudio.Shell.Interop Namespace