ExtensionPart Class

Definition

Base class for services or parts to be returned from service factories.

public abstract class ExtensionPart : IDisposable, Microsoft.VisualStudio.Extensibility.IVisualStudioContributionClass
type ExtensionPart = class
    interface IDisposable
    interface IVisualStudioContributionClass
Public MustInherit Class ExtensionPart
Implements IDisposable, IVisualStudioContributionClass
Inheritance
ExtensionPart
Derived
Implements

Constructors

ExtensionPart()

Initializes a new instance of the ExtensionPart class.

ExtensionPart(ExtensionCore, VisualStudioExtensibility)

Initializes a new instance of the ExtensionPart class.

Properties

Container

Gets the container instance that hosts this and related parts.

Extensibility

Gets the extensibility instance for this service.

IsDisposed

Gets a value indicating whether the object is disposed.

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Dispose(Boolean)

Disposes the instane and underlying services.

InitializeAsync(CancellationToken)

Provides an asynchronous way for extension parts to initialize their fields. This method is called before the instance is handed to Visual Studio.

Applies to