DesignSurfaceExtensionAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Notifies the Visual Studio environment that a VSPackage provides a Type implementing a service to customize or extend services provided by any implementation of DesignSurface at designer load time.
public ref class DesignSurfaceExtensionAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
public ref class DesignSurfaceExtensionAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)]
public sealed class DesignSurfaceExtensionAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)>]
type DesignSurfaceExtensionAttribute = class
inherit RegistrationAttribute
Public NotInheritable Class DesignSurfaceExtensionAttribute
Inherits RegistrationAttribute
- Inheritance
- Attributes
Constructors
DesignSurfaceExtensionAttribute(Type) |
Creates a new instance of the DesignSurfaceExtensionAttribute class specifying a given object as providing a VSPackage's implementation of DesignSurfaceExtension. |
Properties
ExtensionType |
The Type of the object registered as providing a VSPackage with an implementation of DesignSurfaceExtension to customize design surfaces. |
LoadAtIdle |
Controls when, relative to the loading of a designer used by a VSPackage, the extensions provided by the implementation of the DesignSurfaceExtensionAttribute registered by DesignSurfaceExtensionAttribute are installed. |
TypeId |
Override the TypeID property in order to let the RegistrationAttribute derived classes to work with System.ComponentModel.TypeDescriptor.GetAttributes(...). An attribute derived from this one will have to override this property only if it needs a better control on the instances that can be applied to a class. (Inherited from RegistrationAttribute) |
Methods
GetPackageRegKeyPath(Guid) |
Gets the registry path (relative to the registry root of the application) of the VSPackage. (Inherited from RegistrationAttribute) |
Register(RegistrationAttribute+RegistrationContext) |
Registers the design surface extension. |
Unregister(RegistrationAttribute+RegistrationContext) |
Removes the design surface extension registry key. |