Constructor InjectContextAttribute
InjectContextAttribute(ContextUsage, bool)
Creates a new context attribute that stores information that can be passed between build tasks.
Declaration
public InjectContextAttribute(ContextUsage usage = ContextUsage.InOut, bool optional = false)
Parameters
Type | Name | Description |
---|---|---|
ContextUsage | usage | The usage behavior for the attribute. By default it is set to InOut. |
bool | optional | Set to true if using the attribute is optional. Set to false otherwise. |