Condividi tramite


RegisterLoadKeyAttribute Class

Note: This API is now obsolete.

This attribute registers a package load key for your package. This attribute has been deprecated.

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

'Dichiarazione
<AttributeUsageAttribute(AttributeTargets.Class, Inherited := False, AllowMultiple := False)> _
<ObsoleteAttribute("RegisterLoadKeyAttribute has been deprecated. Please use ProvideLoadKeyAttribute instead.")> _
Public NotInheritable Class RegisterLoadKeyAttribute _
    Inherits RegistrationAttribute
'Utilizzo
Dim instance As RegisterLoadKeyAttribute
[AttributeUsageAttribute(AttributeTargets.Class, Inherited = false, AllowMultiple = false)]
[ObsoleteAttribute("RegisterLoadKeyAttribute has been deprecated. Please use ProvideLoadKeyAttribute instead.")]
public sealed class RegisterLoadKeyAttribute : RegistrationAttribute
[AttributeUsageAttribute(AttributeTargets::Class, Inherited = false, AllowMultiple = false)]
[ObsoleteAttribute(L"RegisterLoadKeyAttribute has been deprecated. Please use ProvideLoadKeyAttribute instead.")]
public ref class RegisterLoadKeyAttribute sealed : public RegistrationAttribute
[<SealedAttribute>]
[<AttributeUsageAttribute(AttributeTargets.Class, Inherited = false, AllowMultiple = false)>]
[<ObsoleteAttribute("RegisterLoadKeyAttribute has been deprecated. Please use ProvideLoadKeyAttribute instead.")>]
type RegisterLoadKeyAttribute =  
    class
        inherit RegistrationAttribute
    end
public final class RegisterLoadKeyAttribute extends RegistrationAttribute

Remarks

For VSPackages that target Visual Studio 2008 and earlier, please use ProvideLoadKeyAttribute instead. VSPackages that target Visual Studio 2010 only do not need either attribute.

Inheritance Hierarchy

System.Object
  System.Attribute
    Microsoft.VisualStudio.Shell.RegistrationAttribute
      Microsoft.VisualStudio.Shell.RegisterLoadKeyAttribute

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

RegisterLoadKeyAttribute Members

Microsoft.VisualStudio.Shell Namespace