Condividi tramite


RegisterExtenderAttribute(String, String, String) Constructor

Definition

Creates a new RegisterExtenderAttribute.

public:
 RegisterExtenderAttribute(System::String ^ extendeeCatId, System::String ^ extenderGuid, System::String ^ extenderName);
public:
 RegisterExtenderAttribute(Platform::String ^ extendeeCatId, Platform::String ^ extenderGuid, Platform::String ^ extenderName);
 RegisterExtenderAttribute(std::wstring const & extendeeCatId, std::wstring const & extenderGuid, std::wstring const & extenderName);
public RegisterExtenderAttribute (string extendeeCatId, string extenderGuid, string extenderName);
new Microsoft.VisualStudio.Shell.RegisterExtenderAttribute : string * string * string -> Microsoft.VisualStudio.Shell.RegisterExtenderAttribute
Public Sub New (extendeeCatId As String, extenderGuid As String, extenderName As String)

Parameters

extendeeCatId
String

CatId of the element you want to extend.

extenderGuid
String

GUID of the extender.

extenderName
String

Name of the element you want to extend.

Examples

The following C# code applies the RegisterExtender attribute to a VSPackage named MyVSPackage.

using Microsoft.VisualStudio.VSIP;  
using MSVSIP = Microsoft.VisualStudio.VSIP;c  
[MSVSIP.Helper.RegisterExtender("A2392464-7C22-11D3-BDCA-00C04F688E50", "7C7E655A-0FBD-43c8-BC2E-C83BB68BFFA2" , "StaticSolutionBrowserObjExtender")]  
public class AutoExtenderPackage : MSVSIP.Helper.Package {}  

Remarks

The C# language automatically appends the word "Attribute" to the name of any attribute class. In C# code, refer to this attribute as RegisterExtender.

Applies to