Extension<T>()
Gets a project extension object or creates a new instance if none has been created before. The type must derive from ProjectExtension and have a default constructor. New instances will be initialized using Initialize(IProject, bool).
Declaration
[Obsolete("Use IDeclaration.Enhancements().GetOptions<T> to get or amender.Configure<T>(...) to set an option.")]
T Extension<T>() where T : ProjectExtension, new()
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T | The extension type, which must derive from ProjectExtension and have a default constructor. |