ProvideEditorFilenameAttribute Class

Definition

Associates a file name with a given editor factory.

public ref class ProvideEditorFilenameAttribute : Microsoft::VisualStudio::Shell::ProvideEditorAttributeBase
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)]
public class ProvideEditorFilenameAttribute : Microsoft.VisualStudio.Shell.ProvideEditorAttributeBase
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)>]
type ProvideEditorFilenameAttribute = class
    inherit ProvideEditorAttributeBase
Public Class ProvideEditorFilenameAttribute
Inherits ProvideEditorAttributeBase
Inheritance
Attributes

Constructors

ProvideEditorFilenameAttribute(Object, String, Int32)

Initializes an instance of ProvideEditorFilenameAttribute

Properties

DefaultName

The default name of the editor

Factory

The editor factory guid.

(Inherited from ProvideEditorAttributeBase)
Filename

The file specifier (either extension or filename)

NameResourceID

The resource ID of the editor name

Priority

The priority of this file specifier registration.

TypeId

Gets the current instance of this attribute.

(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 such as the type being registered, and path information.

This method is called both for registration and unregistration. The difference is that unregistering just uses a hive that reverses the changes applied to it.

Unregister(RegistrationAttribute+RegistrationContext)

Unregister this editor.

Applies to