다음을 통해 공유


RegisterExtenderAttribute Constructor

This constructor creates a new RegisterExtenderAttribute object.

Namespace:  Microsoft.VisualStudio.Shell
Assemblies:   Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
  Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)

Syntax

‘선언
Public Sub New ( _
    extendeeCatId As String, _
    extenderGuid As String, _
    extenderName As String _
)
‘사용 방법
Dim extendeeCatId As String
Dim extenderGuid As String
Dim extenderName As String

Dim instance As New RegisterExtenderAttribute(extendeeCatId, _
    extenderGuid, extenderName)
public RegisterExtenderAttribute(
    string extendeeCatId,
    string extenderGuid,
    string extenderName
)
public:
RegisterExtenderAttribute(
    String^ extendeeCatId, 
    String^ extenderGuid, 
    String^ extenderName
)
new : 
        extendeeCatId:string * 
        extenderGuid:string * 
        extenderName:string -> RegisterExtenderAttribute
public function RegisterExtenderAttribute(
    extendeeCatId : String, 
    extenderGuid : String, 
    extenderName : String
)

Parameters

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.

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 {}

.NET Framework Security

See Also

Reference

RegisterExtenderAttribute Class

RegisterExtenderAttribute Members

Microsoft.VisualStudio.Shell Namespace