IVsRegisterNewDialogFilters.RegisterNewProjectDialogFilter Method

Definition

Registers a new filter for the AddNewProject dialog.

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

Parameters

pFilter
IVsFilterNewProjectDlg

[in] Pointer to an IVsFilterNewProjectDlg 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 UnregisterNewProjectDialogFilter(UInt32) method.

Returns

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

Applies to