Share via


ExportNodeFilterAttribute(String, String, UInt32) Constructor

Definition

Initializes a new instance of the ExportNodeFilterAttribute class.

public:
 ExportNodeFilterAttribute(System::String ^ type, System::String ^ filterCommandGroup, System::UInt32 filterCommandId);
public ExportNodeFilterAttribute (string type, string filterCommandGroup, uint filterCommandId);
new Microsoft.VisualStudio.Workspace.VSIntegration.UI.ExportNodeFilterAttribute : string * string * uint32 -> Microsoft.VisualStudio.Workspace.VSIntegration.UI.ExportNodeFilterAttribute
Public Sub New (type As String, filterCommandGroup As String, filterCommandId As UInteger)

Parameters

type
String

The unique type for this export such as a Guid

filterCommandGroup
String

Command group for your filter.

filterCommandId
UInt32

Command ID for your filter.

Remarks

Place the button in the Solution Explorer toolbar using the following in your .vsct file:

<Button guid="FilterCommandGroup" id="FilterCommandId" priority="0x0400" type="Button">
<Parent guid = " guidSHLMainMenu" id="IDG_VS_TOOLBAR_PROJWIN_FILTERS" />
<Icon guid = " guidImages" id="bmpPic1" />
<Strings>
<ButtonText>FileNameFilter</ButtonText>
</Strings>
</Button>

The command handling will be performed by the Solution Explorer itself. By using the .vsct button placement, users will be able to assign a single shortcut for both Solution and Open Folder experiences.

Applies to