다음을 통해 공유


RegisterLoadKeyAttribute Constructor

Creates a new RegisterLoadKeyAttribute.

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

Syntax

‘선언
Public Sub New ( _
    minimumEdition As String, _
    productVersion As String, _
    productName As String, _
    companyName As String, _
    resourceId As Short _
)
‘사용 방법
Dim minimumEdition As String
Dim productVersion As String
Dim productName As String
Dim companyName As String
Dim resourceId As Short

Dim instance As New RegisterLoadKeyAttribute(minimumEdition, _
    productVersion, productName, companyName, _
    resourceId)
public RegisterLoadKeyAttribute(
    string minimumEdition,
    string productVersion,
    string productName,
    string companyName,
    short resourceId
)
public:
RegisterLoadKeyAttribute(
    String^ minimumEdition, 
    String^ productVersion, 
    String^ productName, 
    String^ companyName, 
    short resourceId
)
new : 
        minimumEdition:string * 
        productVersion:string * 
        productName:string * 
        companyName:string * 
        resourceId:int16 -> RegisterLoadKeyAttribute
public function RegisterLoadKeyAttribute(
    minimumEdition : String, 
    productVersion : String, 
    productName : String, 
    companyName : String, 
    resourceId : short
)

Parameters

  • minimumEdition
    Type: System.String
    The minimum edition of Visual Studio .NET needed to load the VSPackage.
  • productVersion
    Type: System.String
    The version number of the VSPackage.
  • resourceId
    Type: System.Int16
    The resource ID for the VSPackage load key.

Exceptions

Exception Condition
ArgumentNullException

minimumEdition, productVersion, productName or companyName are nulla null reference (Nothing in Visual Basic).

Remarks

참고

Visual C# automatically appends the word, Attribute, to the name of any attribute class. In Visual C# code, refer to this attribute as RegisterLoadKey.

Examples

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

using Microsoft.VisualStudio.Shell;
using MSVSIP = Microsoft.VisualStudio.Shell;
[MSVSIP.RegisterLoadKey(typeof(MyObject))]
public class MyVSPackage : MSVSIP.Package {}

.NET Framework Security

See Also

Reference

RegisterLoadKeyAttribute Class

RegisterLoadKeyAttribute Members

Microsoft.VisualStudio.Shell Namespace

RegisterLoadKeyAttribute

Other Resources

VSPackage Load Keys