Share via


ProvideViewAdapterAttribute Class

Definition

This attribute can be placed on classes that derive from DesignerWindowPane to associate them with a particular type of view. There are three types of view adapters: file adapters provide support only for a specific file, language adapters support all the files associated with a given language service, and global adapters are available for any type.

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

Constructors

ProvideViewAdapterAttribute(Type, AttributeScope, Object)

Initializes a new for the specified base type and scope.

ProvideViewAdapterAttribute(Type)

Initializes a new instance of ProvideViewAdapterAttribute for the specified base type.

Properties

BaseType

Gets the base type of the view adapter.

Scope

Gets the attribute scope of the view adapter.

ScopeData

Gets the scope data associated with the scope of the view adapter.

TypeId

Gets an ID that is unique for each attribute scope.

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 view adapter.

Unregister(RegistrationAttribute+RegistrationContext)

Removes the view adapter's registry key.

Applies to