Open sandboxFocus

Method GetDefaultOptions

GetDefaultOptions(OptionsInitializationContext)

Gets the default options from the current project.

Declaration
IHierarchicalOptions? GetDefaultOptions(OptionsInitializationContext context)
Parameters
Type Name Description
OptionsInitializationContext context
Returns
Type Description
IHierarchicalOptions

The default options for the given project, or null if the default value is the instance initialized by the default constructor.

Remarks

If the aspect supports parameters supplied as MSBuild project properties, the implementation of this method should read these properties and assign their values to the returned object. Otherwise, it can return null.