Attribute. Registration Context Class
An abstract base class that provides context information from an external source to a registration attribute.
public: ref class RegistrationAttribute::RegistrationContext abstract
[Windows::Foundation::Metadata::WebHostHidden] class RegistrationAttribute::RegistrationContext abstract
public abstract class RegistrationAttribute.RegistrationContext
type RegistrationAttribute.RegistrationContext = class
Public MustInherit Class RegistrationAttribute.RegistrationContext
When to Implement
Registration tools (such as CreatePkgDef.exe) that use the information provided by the registration attribute classes must implement this class, RegistrationAttribute.RegistrationContext, as well as RegistrationAttribute.Key.
A RegistrationAttribute.RegistrationContext object is created by a registration utility such as CreatePkgDef or the Windows Installer to provide information to a registration attribute. The registration context includes the type of object that is being registered, the object's path, and helper properties. It is also used to create keys that can be used to write registration information.
When the registration utility registers a managed package assembly, it uses reflection to search the assembly for attribute classes that implement the RegistrationAttribute class. A RegistrationAttribute.Key object is placed into the RegistrationAttribute.RegistrationContext object and passed to the Register (or Unregister) method of the attribute class.
Creates a new RegistrationAttribute.RegistrationContext.
Gets the path and filename of the object being registered.
Gets the path to the component that is being registered.
Gets the type of component being registered.
Gets the path to the in-process server DLL.
Gets a TextWriter object that can be used to log events during registration.
Gets a value that specifies how the assembly should be located (CodeBase or Assembly).
Gets or sets the root folder.
Creates a new registration key by name.
Reformats a string as needed by the registration tool.
Removes an existing registration key.
Removes the key of the specified name if it has no child key and no value.
Removes a value from a registration key.
Returns an escaped string representing the full path of the specified folder relative to the assembly of the component being registered;
Returns the parent folder containing the assembly of the component being registered.