Condividi tramite


ExtensionPartAttribute Class

Definition

An attribute used to mark an interface or a class extending ExtensionPart.

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Interface, AllowMultiple=true, Inherited=true)]
public class ExtensionPartAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Interface, AllowMultiple=true, Inherited=true)>]
type ExtensionPartAttribute = class
    inherit Attribute
Public Class ExtensionPartAttribute
Inherits Attribute
Inheritance
ExtensionPartAttribute
Attributes

Constructors

ExtensionPartAttribute(Type, String[])

Initializes a new instance of the ExtensionPartAttribute class.

Properties

ConfigurationProperties

Gets the name of the properties containing the configuration of the type this attribute is applied to.

DescriptorFactoryType

Gets or sets the descriptor factory type that will be used to create the descriptor for services representing extension parts. The type must implement Microsoft.VisualStudio.Extensibility.ExtensionPartServiceFactory from Microsoft.VisualStudio.Extensibility.Framework package.

InterfaceType

Gets the contract interface Type for the extension part.

ServiceVersion

Gets or sets the service version override used for creating the ServiceMoniker for the extension part.

Applies to