Compartilhar via


IVsRegisterNewDialogFilters.RegisterAddNewItemDialogFilter Method

Definition

Registers a filter for the AddNewItem dialog.

public:
 int RegisterAddNewItemDialogFilter(Microsoft::VisualStudio::Shell::Interop::IVsFilterAddProjectItemDlg ^ pFilter, [Runtime::InteropServices::Out] System::UInt32 % pdwFilterCookie);
int RegisterAddNewItemDialogFilter(Microsoft::VisualStudio::Shell::Interop::IVsFilterAddProjectItemDlg const & pFilter, [Runtime::InteropServices::Out] unsigned int & pdwFilterCookie);
public int RegisterAddNewItemDialogFilter (Microsoft.VisualStudio.Shell.Interop.IVsFilterAddProjectItemDlg pFilter, out uint pdwFilterCookie);
abstract member RegisterAddNewItemDialogFilter : Microsoft.VisualStudio.Shell.Interop.IVsFilterAddProjectItemDlg * uint32 -> int
Public Function RegisterAddNewItemDialogFilter (pFilter As IVsFilterAddProjectItemDlg, ByRef pdwFilterCookie As UInteger) As Integer

Parameters

pFilter
IVsFilterAddProjectItemDlg

[in] Pointer to an IVsFilterAddProjectItemDlg interface representing the filter to register.

pdwFilterCookie
UInt32

[out] Pointer to an integer containing a VSCOOKIE uniquely identifying the filter just registered. Needed for the UnregisterAddNewItemDialogFilter(UInt32) method.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Applies to