Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Registers a filter for the AddNewItem dialog.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Syntax
'Declaration
Function RegisterAddNewItemDialogFilter ( _
pFilter As IVsFilterAddProjectItemDlg, _
<OutAttribute> ByRef pdwFilterCookie As UInteger _
) As Integer
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
pFilter
Type: Microsoft.VisualStudio.Shell.Interop.IVsFilterAddProjectItemDlg[in] Pointer to an IVsFilterAddProjectItemDlg interface representing the filter to register.
pdwFilterCookie
Type: System.UInt32%[out] Pointer to an integer containing a VSCOOKIE uniquely identifying the filter just registered. Needed for the UnregisterAddNewItemDialogFilter method.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.