EditorFactoryNotifyForProjectAttribute Class

Definition

This attribute adds a File Extension for a Project System so that 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)

Creates a new ProvideEditorFactoryNotifyForProject attribute to register a file extension with a project.

Properties

FactoryType

Get the Guid representing the type of the editor factory

FileExtension

Get or Set the extension of the XML files that support this view

ProjectType

Get the Guid 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)

Called to register this attribute with the given context. The context contains the location where the registration information should be placed. It also contains other information such as the type being registered and path information.

Unregister(RegistrationAttribute+RegistrationContext)

Unregister this file extension.

Applies to