RegistrationAttribute Class

 

An abstract class for VSPackage registration. The RegistrationAttribute class allows new registration information to be added without changing the registration tools.

Namespace:   Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.Immutable.10.0 (in Microsoft.VisualStudio.Shell.Immutable.10.0.dll)

System::Object
  System::Attribute
    Microsoft.VisualStudio.Shell::RegistrationAttribute
      Microsoft.VisualStudio.Shell::CodeGeneratorRegistrationAttribute
      Microsoft.VisualStudio.Shell::ComponentPickerPropertyPageAttribute
      Microsoft.VisualStudio.Shell.Design::DesignSurfaceExtensionAttribute
      Microsoft.VisualStudio.Shell.Design::ProvideDesignerMetadataAttribute
      Microsoft.VisualStudio.Shell.Design::ProvideDesignerOptionsAttribute
      Microsoft.VisualStudio.Shell.Design::ProvideGlobalObjectProviderAttribute
      Microsoft.VisualStudio.Shell.Design::ProvideViewAdapterAttribute
      Microsoft.VisualStudio.Shell.Design.Serialization::ProvideDesignerLoaderAttribute
      Microsoft.VisualStudio.Shell.Design.Serialization::ProvideGeneratorAttribute
      Microsoft.VisualStudio.Shell::EditorFactoryNotifyForProjectAttribute
      Microsoft.VisualStudio.Shell::ExtensionPointRegistrationAttribute
      Microsoft.VisualStudio.Shell::InstalledProductRegistrationAttribute
      Microsoft.VisualStudio.Shell::PackageRegistrationAttribute
      Microsoft.VisualStudio.Shell::ProvideAppCommandLineAttribute
      Microsoft.VisualStudio.Shell::ProvideAutoLoadAttribute
      Microsoft.VisualStudio.Shell::ProvideAutomationObjectAttribute
      Microsoft.VisualStudio.Shell::ProvideBindingPathAttribute
      Microsoft.VisualStudio.Shell::ProvideDependentAssemblyAttribute
      Microsoft.VisualStudio.Shell::ProvideEditorExtensionAttribute
      Microsoft.VisualStudio.Shell::ProvideEditorFactoryAttribute
      Microsoft.VisualStudio.Shell::ProvideEditorLogicalViewAttribute
      Microsoft.VisualStudio.Shell::ProvideExtenderAttribute
      Microsoft.VisualStudio.Shell::ProvideExtensibleUIContextRuleAttribute
      Microsoft.VisualStudio.Shell::ProvideKeyBindingTableAttribute
      Microsoft.VisualStudio.Shell::ProvideLanguageCodeExpansionAttribute
      Microsoft.VisualStudio.Shell::ProvideLanguageEditorToolsOptionCategoryAttribute
      Microsoft.VisualStudio.Shell::ProvideLanguageExtensionAttribute
      Microsoft.VisualStudio.Shell::ProvideLanguageServiceAttribute
      Microsoft.VisualStudio.Shell::ProvideLoadKeyAttribute
      Microsoft.VisualStudio.Shell::ProvideMenuResourceAttribute
      Microsoft.VisualStudio.Shell::ProvideMSBuildTargetsAttribute
      Microsoft.VisualStudio.Shell::ProvideObjectAttribute
      Microsoft.VisualStudio.Shell::ProvideOptionDialogPageAttribute
      Microsoft.VisualStudio.Shell::ProvideProfileAttribute
      Microsoft.VisualStudio.Shell::ProvideProjectFactoryAttribute
      Microsoft.VisualStudio.Shell::ProvideProjectItemAttribute
      Microsoft.VisualStudio.Shell::ProvideServiceAttributeBase
      Microsoft.VisualStudio.Shell::ProvideSettingAttribute
      Microsoft.VisualStudio.Shell::ProvideStaticToolboxGroupAttribute
      Microsoft.VisualStudio.Shell::ProvideStaticToolboxItemAttribute
      Microsoft.VisualStudio.Shell::ProvideToolboxItemConfigurationAttribute
      Microsoft.VisualStudio.Shell::ProvideToolboxItemDiscoveryAttribute
      Microsoft.VisualStudio.Shell::ProvideToolboxItemsAttribute
      Microsoft.VisualStudio.Shell::ProvideToolWindowAttribute
      Microsoft.VisualStudio.Shell::ProvideToolWindowVisibilityAttribute
      Microsoft.VisualStudio.Shell::ProvideUIContextRuleAttribute
      Microsoft.VisualStudio.Shell::ProvideXmlEditorChooserBlockSxSWithXmlEditorAttribute
      Microsoft.VisualStudio.Shell::ProvideXmlEditorChooserDesignerViewAttribute
      Microsoft.VisualStudio.Shell::RegisterAutoLoadAttribute
      Microsoft.VisualStudio.Shell::RegisterEditorExtensionAttribute
      Microsoft.VisualStudio.Shell::RegisterEditorLogicalViewAttribute
      Microsoft.VisualStudio.Shell::RegisterExtenderAttribute
      Microsoft.VisualStudio.Shell::RegisterLanguageExtensionAttribute
      Microsoft.VisualStudio.Shell::RegisterLoadKeyAttribute
      Microsoft.VisualStudio.Shell::RegisterProjectItemAttribute
      Microsoft.VisualStudio.Shell::SingleFileGeneratorSupportRegistrationAttribute
      Microsoft.VisualStudio.Shell::SolutionPersistenceRegistrationAttribute
      Microsoft.VisualStudio.Shell::WAProvideLanguagePropertyAttribute
      Microsoft.VisualStudio.Shell::WAProvideProjectFactoryAttribute
      Microsoft.VisualStudio.Shell::WAProvideProjectFactoryTemplateMappingAttribute
      Microsoft.VisualStudio.Shell::WebSiteProjectAttribute
      Microsoft.VisualStudio.Shell::WebSiteProjectRelatedFilesAttribute

[AttributeUsageAttribute(AttributeTargets::Class)]
public ref class RegistrationAttribute abstract : Attribute

NameDescription
System_CAPS_protmethodRegistrationAttribute()

Initializes a new instance of the class.

NameDescription
System_CAPS_pubpropertyTypeId

Gets the current instance of this attribute.(Overrides Attribute::TypeId.)

NameDescription
System_CAPS_pubmethodEquals(Object^)

(Inherited from Attribute.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Attribute.)

System_CAPS_protmethodGetPackageRegKeyPath(Guid)

Gets the registry path (relative to the registry root of the application) of the VSPackage.

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodIsDefaultAttribute()

(Inherited from Attribute.)

System_CAPS_pubmethodMatch(Object^)

(Inherited from Attribute.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodRegister(RegistrationAttribute::RegistrationContext^)

Registers this VSPackage with a given context, when called by an external registration tool such as regpkg.exe. For more information, see Registering VSPackages.

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodUnregister(RegistrationAttribute::RegistrationContext^)

Called to unregister this attribute with the given context.

Derive a registration attribute from RegistrationAttribute to create a class that makes specialized registry entries when applied to your Package-derived class or a class that implements IVsPackage.

Attribute classes that provide VSPackage registration information. Regpkg.exe or other registration tools must derive from and implement RegistrationAttribute. For more information, see Registering VSPackages.

RegistrationAttribute is an abstract attribute class that enables VSPackage developers to add registration attribute classes without needing to change the registration tools.

Attribute classes that provide registration information to regpkg.exe or other registration tools must derive from RegistrationAttribute, and must implement the Register and Unregister abstract methods.

Registration tools such as regpkg.exe must implement the classes RegistrationAttribute::Key and RegistrationAttribute::RegistrationContext.

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

Return to top
Show: