ProvideLanguageExtensionAttribute.Register(RegistrationAttribute+RegistrationContext) ProvideLanguageExtensionAttribute.Register(RegistrationAttribute+RegistrationContext) ProvideLanguageExtensionAttribute.Register(RegistrationAttribute+RegistrationContext) ProvideLanguageExtensionAttribute.Register(RegistrationAttribute+RegistrationContext) ProvideLanguageExtensionAttribute.Register(RegistrationAttribute+RegistrationContext) Method

Definition

Puts the file extension and language service GUID into the registry.

public:
 override void Register(Microsoft::VisualStudio::Shell::RegistrationAttribute::RegistrationContext ^ context);
 override void Register(Microsoft::VisualStudio::Shell::RegistrationAttribute::RegistrationContext const & context);
public override void Register (Microsoft.VisualStudio.Shell.RegistrationAttribute.RegistrationContext context);
override this.Register : Microsoft.VisualStudio.Shell.RegistrationAttribute.RegistrationContext -> unit
Public Overrides Sub Register (context As RegistrationAttribute.RegistrationContext)
Parameters

Remarks

This method is called to create all of the necessary registry entries to associate a file extension with a language service. Typically, a program such as regpkg.exe reads a specified assembly and looks for all attributes that inherit from the RegistrationAttribute. Regpkg.exe then instantiates each attribute, supplying the appropriate parameters that were specified when the attribute was compiled. Finally, regpkg.exe calls Register method on the newly created object to cause all of the appropriate registry keys and entries to be created.

Note that this method is an override of and specific to the managed package framework (MPF) RegistrationAttribute class.

Applies to