EditorFactoryNotifyForProjectAttribute Class

Definition

Adds a file extension for a Project System so the Project will call IVsEditorFactoryNotify methods when an item of this type is added or renamed.

public ref class EditorFactoryNotifyForProjectAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
public ref class EditorFactoryNotifyForProjectAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)]
[System.Runtime.InteropServices.ComVisible(false)]
public sealed class EditorFactoryNotifyForProjectAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
type EditorFactoryNotifyForProjectAttribute = class
    inherit RegistrationAttribute
Public NotInheritable Class EditorFactoryNotifyForProjectAttribute
Inherits RegistrationAttribute
Inheritance
EditorFactoryNotifyForProjectAttribute
Attributes

Remarks

For example:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\Projects\

{F184B08F-C81C-45F6-A57F-5ABD9991F28F}\FileExtensions\.addin]

	"EditorFactoryNotify"="{FA3CD31E-987B-443A-9B81-186104E8DAC1}"

Constructors

EditorFactoryNotifyForProjectAttribute(Object, String, Object)

Initializes a new instance of the EditorFactoryNotifyForProjectAttribute class, which registers a file extension with a project.

Properties

FactoryType

Gets the object representing the type of the editor factory.

FileExtension

Gets the extension of the XML files that supports this view.

ProjectType

Gets the object representing the project type.

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 this attribute with the given context.

Unregister(RegistrationAttribute+RegistrationContext)

Unregisters this attribute.

Applies to