IExtension Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The interface that all extensions must implement. Extensions are a special kind of services that have some identity.
public interface IExtension
type IExtension = interface
Public Interface IExtension
- Derived
Properties
| Name | Description |
|---|---|
| Description |
Gets the description of the extension. |
| DisplayName |
Gets the display name of the extension. |
| Uid |
Gets the unique identifier for the extension. |
| Version |
Gets the version of the extension (ideally semantic version). |
Methods
| Name | Description |
|---|---|
| IsEnabledAsync() |
Controls whether the extension is enabled or not. This is useful for extensions that are always registered but only enabled when certain conditions are met. For example, an extension that would want to be run only when its associated command line option is provided by the user. |