Share via


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.

RegisterFactory

Indicates whether to also register the specified editor factory. Defaults to true.

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 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